Created
March 10, 2020 01:25
-
-
Save steffanydev/5c564c2156684c22b93d62d5032474c0 to your computer and use it in GitHub Desktop.
Seu desafio é criar um programa que diga quantos dias faltam para o ano novo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import datetime | |
| dia_a = datetime.datetime.now() | |
| qtd_dia = dia_a.strftime("%j") | |
| falta = datetime.ye - float(qtd_dia) | |
| print('Falta {:.0f} dias para o Ano Novo'.format(falta)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment