Skip to content

Instantly share code, notes, and snippets.

@awalx
Created August 12, 2016 00:55
Show Gist options
  • Save awalx/597ce46b26c8db45484199a892709c54 to your computer and use it in GitHub Desktop.
Save awalx/597ce46b26c8db45484199a892709c54 to your computer and use it in GitHub Desktop.
Simple hello world Python 3 program
#hello.py
#Simple hello world Python 3 program
#Print 'Hello World'
print('Hello There!')
#Ask for user's name and take input
print('What\'s your name?')
myName = input()
#Output name provided
print('Nice to meet you, ' + myName)
#Count and display the amount of charaters in the name
print('Your name has, ' + str(len(myName)) + ' characters.')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment