Addition

Sun 08 March 2026
x=2
y=3
z=x+y
print(z)
5


Score: 0

Category: basics


Age-Calculator

Sun 08 March 2026
from datetime import datetime
def get_age(d):
    d1 = datetime.now()
    months = (d1.year - d.year) * 12 + d1.month - d.month

    year = int(months / 12)
    return year
age = get_age(datetime(1991, 1, 1))
age
33


Score: 5

Category: basics

Read More
Page 1 of 1