Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

RemoveCapitals.py Submit Run Grades Reset 13 #Remember, capital letters have ordinal numbers between 65 ABcccc432 14 #a lettends9ordina.number ay use the ord() function to get

image text in transcribed

RemoveCapitals.py Submit Run Grades Reset 13 #Remember, capital letters have ordinal numbers between 65 ABcccc432 14 #a lettends9ordina.number ay use the ord() function to get 15 #a letter's ordinal number 16 # 17 #Your function should be able to handle strings with no 18 #capitals (return the original string) and strings with all 19 #capitals (return an empty string). You may assume we'll 29 only use regular characters (no-emojis, formatting 21 fcharacters, etc.) 23 24 Write your function here! 25 def remove capitals (a string): 26 27 28 29 3e 31 32 try: for character in a string if ord(character)2.65 and ord(character)

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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions

Question

here) and other areas you consider relevant.

Answered: 1 week ago