Skip to content
Sign upLog in
← Back to Community

Age!!

Profile icon
sindhuu

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

Voters
Profile icon
AnikaBisain
Profile icon
dillonjoshua68
Profile icon
sindhuu
Comments
hotnewtop
Profile icon
Ringularity

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!