Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

This the program Michael asked me to create to test my Python programming competence.

I intend adding this to my GitHub to boost my profile.

# This program says hello and asks for my name.


print('Hi!')
print('What is your name?') # ask for their name
userName1 = input()
print('It is good to meet you, ' + userName1)
print('Please , ' + userName1 + ' type your first number') # ask for their first
number
first_number = input()
print('Thank you, now type your second number')
second_number = input()

#print('You will be ' + str(int(first_number) + int(second_number)) + ' in a year.')


Error
#answer = (first_number * second_number) Error

print('Your answer, ' + userName1 + ' will be ' + str(int(first_number) *


int(second_number)) + ' from our calculations.')
#print('from our calculation is:' + answer) Error
print('Have a great day')

You might also like