Assignment # 3: User input and output PLEASE USE PYTHON TO CREATE THE CODE Write
ID: 3744473 • Letter: A
Question
Assignment # 3: User input and output
PLEASE USE PYTHON TO CREATE THE CODE
Write an application that requests three things from a user, first name, last name, and a positive integer greater than 10.
Use concatenation to print out the user’s first and last name, with a space in between
Use modular division by 9 to divide the positive integer and produce a number between 0 and 8, saved in a variable.
Add 1 to the number
Print “This number may figure significantly in your life in the near future” and display the number.
Explanation / Answer
firstname=input("Enter your first name:")
lastname=input("Enter your last name:")
number=int(input("Enter any number grater than 10:"))
number=(number%9)+1
print(firstname+" "+lastname)
print("This number may figure significantly in your life in the near future:")
print(number)
firstname=input("Enter your first name:")
lastname=input("Enter your last name:")
number=int(input("Enter any number grater than 10:"))
number=(number%9)+1
print(firstname+" "+lastname)
print("This number may figure significantly in your life in the near future:")
print(number)
Enter your first name: sumantha Enter your last name: koppula Enter any number grater than 10: 65 sumantha koppula This number may figure significantly in your life in the near future: 3