-
-
Save amankharwal/72a19b0e880dc4124c46cc50db69db85 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user_input = str(input("Enter a Phrase: ")) | |
text = user_input.split() | |
a = " " | |
for i in text: | |
a = a+str(i[0]).upper() | |
print(a) |
Where did the 'i' come on line 4? And are we doing joins?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
print("".join([s[0].upper() for s in input("String: ").split()]))