Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USE PYTHON PLEASE #Write a function called remove_capitals. remove_capitals #should accept one parameter, a string. It should return a #string containing the original string with

USE PYTHON PLEASE

#Write a function called remove_capitals. remove_capitals #should accept one parameter, a string. It should return a #string containing the original string with all the capital #letters removed. Everything else should be in the same #place and order as before. # #For example: # # remove_capitals("A1B2C3D") -> "123" # remove_capitals("WHAT") -> "" # remove_capitals("what") -> "what" # #Remember, capital letters have ordinal numbers between 65 #("A") and 90 ("Z"). You may use the ord() function to get #a letter's ordinal number. # #Your function should be able to handle strings with no #capitals (return the original string) and strings with all #capitals (return an empty string). You may assume we'll #only use regular characters (no emojis, formatting #characters, etc.).

#Write your function here!

#Below are some lines of code that will test your function. #You can change the value of the variable(s) to test your #function with different inputs. # #If your function works correctly, this will originally #print: #123 #eorgia nstitute of echnology print(remove_capitals("A1B2C3D")) print(remove_capitals("Georgia Institute of Technology"))

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

Beginning C# 5.0 Databases

Authors: Vidya Vrat Agarwal

2nd Edition

1430242604, 978-1430242604

More Books

Students also viewed these Databases questions

Question

politeness and modesty, as well as indirectness;

Answered: 1 week ago