Header Ads

Responsive Ads Here

Question/Solution - 1

Ouestion



# user name  -   Adrika (Input)
# user age   -   13 (Input)

# Adrika's age is 13 (Output)
#User will be 14 next year (Output)



Answer




user_name, age = input('Enter your name and age separated with comma: ').split(',')
print(user_name + '\'s age is ' + age + '.')
print('User will be ' + str(int(age)+1) + ' next year.')

Powered by Blogger.