Respuesta :
name = input("Enter a name: ")
place = input("Enter a place: ")
number = input("Enter a number: ")
noun = input("Enter a noun: ")
print("{} went to {} to buy {} different types of {}".format(name, place, number, noun))
I hope this helps!
Following are the Python program for input value and prints its value with the message.
Program Explanation:
- In the python code, four variables "na, l, nu, no" are declared that inputs value by using the input method.
- In this, except for the "nu" variable, all is used for the input string value.
- After input value, the print method has used that prints value with a message.
Program:
#defining variable that uses the input method to the input value
na = input()#defining na variable to input value
l = input()#defining l variable to input value
nu = int(input())#defining nu variable to input integer value
no = input()#defining no variable to input value
print(na, 'went to', l, 'to buy', str(nu), 'different types of', no)# printing input value and print value with message
Output:
Please find the attached file.
Learn more:
brainly.com/question/18752544
