Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created January 16, 2021 11:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/72a19b0e880dc4124c46cc50db69db85 to your computer and use it in GitHub Desktop.
Save amankharwal/72a19b0e880dc4124c46cc50db69db85 to your computer and use it in GitHub Desktop.
user_input = str(input("Enter a Phrase: "))
text = user_input.split()
a = " "
for i in text:
a = a+str(i[0]).upper()
print(a)
@mursalatul
Copy link

print("".join([s[0].upper() for s in input("String: ").split()]))

@MrITHubb
Copy link

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