How to create a simple age calculator without Tkinter.

Поделиться
HTML-код
  • Опубликовано: 30 окт 2024
  • Assalamu alaikum guys,
    today we show you how to create a simple age calculator in Python. It is easy and needs only 4 lines to write. Please like, share and comment and subscribe to my channel and be a partner of me. Assalamu alaikum.
    Codes:
    birth = int(input("Enter your birth: ")
    current_year = 2024
    age = current_year - birth
    print(f"Your age is: {age} years old.")

Комментарии •