uce $ python3 main.py - convert: filename y letters at the end of the word should be converted? IE uce $ python3 main.py CoDvert: dongui xota

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Need help writing a script to capitlize the last letters of a word of my choosing. any help you can proide will be greatly appreciated. Attached is what i have so far and a example of how it should turn out

>_ Terminal
+
workspace $ python3 main.py
Word to convert: foobar
How many letters at the end of the word should be converted? 3
fooBAR
workspace $ python3 main.py
Word to convert: filename
How many letters at the end of the word should be converted? 4
fileNAME
workspace $ python3 main.py
Word to convert: donquixote
How many letters at the end of the word should be converted? 10
DONQUIXOTE
workspace $I
Transcribed Image Text:>_ Terminal + workspace $ python3 main.py Word to convert: foobar How many letters at the end of the word should be converted? 3 fooBAR workspace $ python3 main.py Word to convert: filename How many letters at the end of the word should be converted? 4 fileNAME workspace $ python3 main.py Word to convert: donquixote How many letters at the end of the word should be converted? 10 DONQUIXOTE workspace $I
+
Working with Strings
main.py
>- Terminal
1 input("Word to convert: ")
2 int (input("How many letters at the end of the
should be converted? ",))
workspace $ python3 main.
You will create a Python script
py
that will take a user's input and
Word to convert: ||
convert lower case letters in the
string into upper case letters
depending on the user input.
Aim
Write a script that converts the
count amount of letters starting
from the end of a given word to
uppercase. The script should take
the word as a string and specify
the count amount of letters to
convert as an integer input from
the user. You can assume that the
count variable will be a positive
number.
Transcribed Image Text:+ Working with Strings main.py >- Terminal 1 input("Word to convert: ") 2 int (input("How many letters at the end of the should be converted? ",)) workspace $ python3 main. You will create a Python script py that will take a user's input and Word to convert: || convert lower case letters in the string into upper case letters depending on the user input. Aim Write a script that converts the count amount of letters starting from the end of a given word to uppercase. The script should take the word as a string and specify the count amount of letters to convert as an integer input from the user. You can assume that the count variable will be a positive number.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education