first_name = input('Enter your first name here: ')
surname = input('Enter your surname here: ')
print(first_name + ' ' + surname)
Enter your first name here: Donald
Enter your surname here: Trump
Donald Trump
first_no = int(input('Enter first number here: '))
second_no = int(input('Enter second number here: '))
print(first_no * second_no)
Enter first number here: 34
Enter second number here: 12
408
name = input('Enter your name here:')
age = input('Enter your age here:')
print('My name is {} and I am {} years old'.format(name, age) )
Enter your name here:Ariana Grande
Enter your age here:21
My name is Ariana Grande and I am 21 years old
list1 = []
user1 = float(input('Enter your height here: '))
list1.append(user1)
user2 = float(input('Enter your height here: '))
list1.append(user2)
user3 = float(input('Enter your height here: '))
list1.append(user3)
print(max(list1))
sum = 0
for i in list1:
sum = sum + i
print(sum/3)
Enter your height here: 154.9
Enter your height here: 178.9
Enter your height here: 180.9
180.9
171.5666666666667
Comments
Leave a comment