Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # this program is a hello world program
- print ('hello world')
- print ('Hello, what is your name?')
- userName = input()
- nameLength = len(userName)
- print('Great to meet you,' + userName)
- print('The length of your name is ' + str(nameLength) + ' letters.')
- print('What is your age?')
- userAge = input()
- print('You will be ' + str(int(userAge) + 1) + ' in one year!.')
- if userName == 'Ty' or 'Tynan' :
- print('What is your password')
- password = input()
- else:
- print ("You're not Ty")
- if password == 'green123':
- print ('ACCESS GRANTED')
- print ('Welcome')
- print ('What would you like to do?')
- planOfTheDay = input()
- if planOfTheDay == 'Add':
- print ('type the first number')
- firstNumber = input()
- print ('type the second number')
- secondNumber = input()
- print (int(firstNumber) + int(secondNumber))
- elif planOfTheDay == 'Factorial' or 'factoring' :
- print ('which number would you like the factorial of?')
- factorialNumber = input()
- facNumInt = int(factorialNumber)
- for num in range(facNumInt):
- facNumInt = facNumInt + num
- print (facNumInt)
- elif true:
- print ('Sorry I cannot do that')
- else:
- print ('ACCESS DENIED')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement