Share your repls and programming experiences

← Back to all posts
Age!!
sindhuu (1)

Hello! This is my second piece of coding i have ever done in my life!! If you type in your age, then it will tell you how many months you have lived for, and then how many days you have lived for! :D

Commentshotnewtop
DigitalRipple (30)

To make your code more clear and adding an extra print statement, try to combine the 2 as shown below.

print("The number of months you have lived is: ", months)
print("The number of days you have lived is: ", days)

Otherwise, it's super good!