Question: 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

 RemoveCapitals.py Submit Run Grades Reset 13 #Remember, capital letters have ordinal

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!