Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python3
- num = int(input("Please enter a number:\n > "))
- if (num % 2) == 0:
- print("{0} is even number.".format(num))
- else:
- print("{0} is odd number.".format(num))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement