Skip to content

Commit 0da2119

Browse files
committed
Calendário
Cria calendário com base no ano, inicialmente para exibição no terminal, porém aplicável em muitos códigos.
1 parent 0b0145b commit 0da2119

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

calendario.py

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from calendar import *
2+
year = int(input("Informe o Ano: "))
3+
print(calendar(year, 2, 1, 8, 3))
4+
5+
# 2 = 2 caracteres da semana (Mo, Tu, etc)
6+
# 1 = 1 linha por semana
7+
# 8 = 8 linhas por mês
8+
# 3 = 3 colunas com exibição do calendário

0 commit comments

Comments
 (0)