We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e43afd6 commit b715a62Copy full SHA for b715a62
ex032.py
@@ -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))
+# Make a program that reads any year and shows whether it is a leap year.
+year = int(input('Which year do you want to analize?'))
+if year % 4 == 0 and year % 100 !=0 or year % 400 ==0:
+ print(f"The year {year} it's a leap year")
5
else:
6
- print('O ano {} NÃO é bissexto.'.format(ano))
+ print(f"The year {year} it's not a leap year")
0 commit comments