Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Nathan Version
- name = input("enter your name: ")
- print("Hello", name + "!")
- print("Enter two numbers")
- a = int(input("a = "))
- b = int(input("b = "))
- y = a + b
- print("y:", y)
- print('The result of ' + str(a) + ' + ' + str(b) + ' is ' + str(y))
- # My Version - Andrew
- input_name = str(input('Enter your name: '))
- print(f'Hello, {input_name}')
- input1 = int(input('Enter first numbers '))
- input2 = int(input('Enter second number: '))
- res = input1 + input2
- print(f'The result of {input1} + {input2} is {res}')
Add Comment
Please, Sign In to add comment