Respuesta :
Answer:
program:
person_name = input() #input for the name of the person.
person_age = int(input()) #input for the age of the person and convert it into int.
print("In 5 years "+ person_name+" will be "+str(person_age+5)+".") # print the string.
Output:
- If the user input is Go and 4 then the output is "In 5 years Go will be 9."
Explanation:
- The above program is in python language.
- The first line of the program is used to take the inputs from the user in string format by the help of input function and store it on the variable of person_name.
- The second line of the program is used to take the input from the user by the help of input function in the form of a string and convert it into an integer by the help of int function and store the value on the person_age.
- The third line of the program prints the string after adding 5 into person_age because after 5 years the age will be added into 5.
The program is meant to be completed in Python. The complete program where comments are used to explain each line is as follows:
#This gets input for first name
person_name = input()
#This gets input for whole number
person_age = int(input())
#This prints the string generated
print('In 5 years,', person_name,'will be',(5+person_age))
The last line of the code uses string concatenation to join the strings before printing the output string
Learn more about python programs at:
https://brainly.com/question/22841107