Skip to content

Commit b715a62

Browse files
committed
Updated
1 parent e43afd6 commit b715a62

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ex032.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Faça um programa que leia um ano qualquer e mostre se ele é bissexto.
2-
ano = int(input('Qual ano deseja analizar?'))
3-
if ano % 4 == 0 and ano % 100 !=0 or ano % 400 ==0:
4-
print('O ano {} é bissexto'.format(ano))
1+
# Make a program that reads any year and shows whether it is a leap year.
2+
year = int(input('Which year do you want to analize?'))
3+
if year % 4 == 0 and year % 100 !=0 or year % 400 ==0:
4+
print(f"The year {year} it's a leap year")
55
else:
6-
print('O ano {} NÃO é bissexto.'.format(ano))
6+
print(f"The year {year} it's not a leap year")

0 commit comments

Comments
 (0)