Mega Code Archive

 
Categories / Python Tutorial / Buildin Function
 

Raw_input() prompts the user with a given string and accepts and returns a user-input string

user_input = raw_input("Enter your name: ") print user_input print len(user_input)