Anúncio
Anúncio

Mais conteúdo relacionado

Anúncio

date add.pptx

  1. print('t───────────────────────────────────────') print('t Program to add some days to present date and print the date added ') print('t───────────────────────────────────────') now = datetime.now() print(now.strftime('ttCurrent Date is: %d:%B:%Y')) num = int(input('ttEnter the number of days to add: ')) EndDate = datetime.today() + timedelta(days = num) print(EndDate.strftime('ttThe Updated Date is: %d:%B:%Y')) print('t────────────────────────────────')
Anúncio