Skip to content

lições semana 4 - Rafaella Fiel#28

Open
rafaellafiel wants to merge 1 commit intoreprograma:mainfrom
rafaellafiel:main
Open

lições semana 4 - Rafaella Fiel#28
rafaellafiel wants to merge 1 commit intoreprograma:mainfrom
rafaellafiel:main

Conversation

@rafaellafiel
Copy link

No description provided.

numero = int(input("Digite 20 números em sequência: "))
numeros.append(numero)

if numero % 2 == 0:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pode usar somente o if numero % 2:, mas não está errado assim!


for valor in range(20):
numero = int(input("Digite 20 números em sequência: "))
numeros.append(numero)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Arrasou testando os valores no mesmo for do input!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants