Написать программу дату вашего рождения

31 Авг 2019 в 08:41
284 +1
1
Ответы
1

Sure, here is a simple program written in Python that will display the date of your birthday:

from datetime import datetime
# Input the date of birth
year = int(input("Enter the year of your birth (YYYY): "))
month = int(input("Enter the month of your birth (MM): "))
day = int(input("Enter the day of your birth (DD): "))
# Create a datetime object for the birth date
birth_date = datetime(year, month, day)
# Display the birth date
print("Your birth date is: ", birth_date.strftime("%d %B, %Y"))

You can simply run this program in any Python environment and input your birth date when prompted. The program will then display the date in a formatted way.

20 Апр 2024 в 05:27
Не можешь разобраться в этой теме?
Обратись за помощью к экспертам
Гарантированные бесплатные доработки в течение 1 года
Быстрое выполнение от 2 часов
Проверка работы на плагиат
Поможем написать учебную работу
Прямой эфир