Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Loops&Conditionals/ifEvenorOdd.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
num = int(input("Enter your number:")) #input takes a string value so it must be casted to int

if (n&1): # ANDing with 1 checks if a number is odd , useful for large numbers
print("odd")
print("Odd")
else:
print("even")
print("Even")