Skip to content

Instantly share code, notes, and snippets.

@franciscojsc
Created October 29, 2017 01:01
Show Gist options
  • Select an option

  • Save franciscojsc/1dfe4fea4a6917217189cac463829828 to your computer and use it in GitHub Desktop.

Select an option

Save franciscojsc/1dfe4fea4a6917217189cac463829828 to your computer and use it in GitHub Desktop.
Número par ou Impar em Python
numero = float(input('Digite um número para saber se é par ou impar:'))
resto = numero % 2
if resto == 0:
print('Número é par')
else:
print('Número é impar')
@HenriKenn
Copy link

Obg !

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