Pick Apart Your User's Input (Exercise)
Your next exercise builds kind of on top of the previous one. So your task here is to pick a part your user’s input. It should write a program that you’re going to name
first_letter.py, and it should prompt the user for an input, giving you the prompt string
"Tell me your password: " and then the program should determine the first letter of the user’s input, convert that letter to uppercase, and display it back.
And then there’s an example down here that says, if the user’s input is
"no", which is probably a good thing to say to such a prompt, then the program should display the following output, saying
The first letter you entered was: and then an uppercase
N because this is the first letter of the string that the user entered, uppercased.
Become a Member to join the conversation.