Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I missed these on a test we had. Im still very confused on what i did wrong can you please provide and answer to this

 I missed these on a test we had. Im still very confused on what i did wrong can you please provide and answer to this as well as an explanation for future reference thanks



Scenario


You will create a Python script that will take a user's input and convert lower case letters in the string into upper case letters depending on the user input.

Aim


Write a script that converts thecountamount of letters starting from the end of a given word to uppercase. The script should take the word as a string and specify thecountamount of letters to convert as an integer input from the user. You can assume that thecountvariable will be a positive number.

Steps for Completion


Open yourmain.pyfile.

On the first line, request the string to convert from the user.

On the next line, request how many letters at the end of the word should be converted.

Next, get the start of the string.

Then, get the ending of the string, that is, the one we'll be converting.

Then, concatenate the first and last part back together, with the last substring transformed.

Finally, run the script with thepython3 main.pycommand

The output should look likeFigure 2.8below:



Figure 2.8

Grading


Complete each task listed below. Each task contains automated checks which are used to calculate your grade. When you have completed each task by clicking the checkbox, open the task list panel on the left navigation bar and click the "Submit" button.

Task



Following the instructions and write a script that converts the lastcountletters of a given string to uppercase.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Applying Communication Theory For Professional Life A Practical Introduction

Authors: Marianne Dainton, Elaine D. Zelley

4th Edition

150631547X, 978-1506315478

More Books

Students also viewed these Computer Network questions

Question

Explain the Hawthorne effect.

Answered: 1 week ago

Question

What is loading?

Answered: 1 week ago