0
ano = input()
a= ano.split()
def contaDigitos():
for x in a:
s= len(x)
if s !=4:
return "Ano invalido"
else:
return x
def ehBissexto():
for x in a:
x= int(x)
if x % 4==0 and x %100!=0:
if x> 2019:
return("ser� bisexto")
else :
return"foi bisexto"
else:
return "nao e bissexto"
Mensagem (k,m):
print("{}={}".format(k,m))
Mensagem(contaDigitos(),ehBissexto())
entree
2017 2020 1980 05 20 2024
expected exit
The year 2017 is not leap
The year 2020 Leap time
The year 1980 was leap
Invalidity year
Invalidity year
The year 2024 Leap time
What would be the "linear shape" of the output of the function? What is the current output? Obs.: check the code indentation in the question...
– Woss
in the form that is in the example of the above exit, (one on the side the other )
– MARCOS VINICIUS MACARIO CRUZ
Mark, "linear shape" would be all outputs on the same line?
– Luiz Augusto
The correct term is sequential output. When you use a linear term you understand that the result comes from a linear transformer.
– Augusto Vasques
ok I’ll change the question thanks.
– MARCOS VINICIUS MACARIO CRUZ