Mar-10-2017, 07:30 PM
I want to write a program that asks the user for his/her name
the program should take the name of the user from 1 line input and gives an output with Welcome+the first letter capitalized of both names
for example:
input output
riko johns Welcome "RJ"
I have tried this but the problem is i dont know how to identify the second name in order to capitalize its first letter
the program should take the name of the user from 1 line input and gives an output with Welcome+the first letter capitalized of both names
for example:
input output
riko johns Welcome "RJ"
I have tried this but the problem is i dont know how to identify the second name in order to capitalize its first letter
x= raw_input("Write your full name: ") y= x[0:1] z= y.upper() print "Welcome",'"'+z+'"'