Advertisement
Felanpro

Serious with strings

Mar 2nd, 2016
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. name = input('What\'s your name?: ' )
  2. nameLength = len(name)
  3.  
  4. print('Your name is ', name, 'and it has', nameLength, 'letters in it!')
  5.  
  6. #The function "len()" calculates the length of a string!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement