Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (120 points)
print ('Hello world!')

print ('What is your name?')

myName = input()

print ('It is good to meet you, '+ myName)

print ('The length of your name is: ')

print(len(myName))

print ('What is your age?')

myAge = input()

print ('You will be '  + str(int(myAge)+1) + 'in a year.'

Please log in or register to answer this question.

Related questions

+1 vote
3 answers
asked Oct 3, 2019 in Python by Sammy (47.6k points)
0 votes
0 answers
asked Dec 31, 2020 in Python by shashu (120 points)
0 votes
1 answer
asked Aug 24, 2019 in Python by Sammy (47.6k points)
0 votes
1 answer

Browse Categories

...