Python Write a simple python program that performs the following 1- The program
ID: 3733813 • Letter: P
Question
Python Write a simple python program that performs the following 1- The program is called project3.py and runs by executing the following command on the command-line python project3.py 2- The program has two functions: a. main() b. toUpper(s) 3- When the program runs, the main() function is called. 4 The toUpper(s) function receives the string s as the parameter and returns the uppercase form on the received string. 5- In the main() function, a. Define a string variable called hw and set its value to "Hello World! b. Print hw c. Call the toUpper function with hw as its argument; i.e. toUpper(hw) and assign the returned value to another variable called HW d. Print HW e. Print "Done" 6Add comments to your codeExplanation / Answer
Please find the program below. Proper comments has been added to each and every line of the program.
project3.py :
===========
PROGRAM EXECUTION AND OUTPUT :
==================================
python project3.py
Hello World!
HELLO WORLD
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.