Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

1.

With while loop and input statement, program the code which receives string in input statement
and simply prints the input string. Also, make sure the program stops when you feed the input with
'quit'. (hint: use conditional statement to control the while loop)

Example:

2. 2. Define the function which receives a person's name and prints the name with the first character
of name in capital letter. (for example, if input is 'seowung', printed result is Seowung) Function
does not have a return value and has a single input parameter.

And then, call your function to print two different names. (In my example, I named my function as
“Capitalizer”. You can name your function as you want.)

You might also like