Skip to content

Conversation

Lis1212
Copy link

@Lis1212 Lis1212 commented Oct 31, 2018

No description provided.

@Lis1212 Lis1212 closed this Oct 31, 2018
@Lis1212 Lis1212 reopened this Oct 31, 2018
@Lis1212 Lis1212 changed the title condição python iniciantes Oct 31, 2018
Copy link
Member

@harshildarji harshildarji left a comment

Choose a reason for hiding this comment

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

  1. Add .py extension to your files!
  2. It would be more helpful if English is used in statements like:
numero=int(input("Digite o número: "))

Thank you.

n2 = int(input("Digite outro número: "))
menor = n1 < n2 and n2 < n1
maior = n1 > n2 and n1 > n2
if maior % menor == 0:
Copy link
Member

Choose a reason for hiding this comment

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

menor and maior will have bool values
due to Line 3 menor will always be false
so Line 5 will give ZerroDivisionError

@github-actions
Copy link

Stale pull request message

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

Labels

None yet

3 participants