- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheven.py
More file actions
Latest commit
25 lines (18 loc) · 549 Bytes
/
Copy patheven.py
File metadata and controls
25 lines (18 loc) · 549 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env python
# import modules used here -- sys is a very standard one
importsys
# Gather our code in a main() function
defmain():
number=float(input("Enter a number: "))
ifnumber==0:
print(int(number), "Zero.")
elifnumber%2==0:
print(int(number), "is Even.")
elifnumber%2==1:
print(int(number), "is Odd.")
else:
print(int(number), "is very strange.")
# Standard boilerplate to call the main() function to begin
# the program.
if__name__=='__main__':
main()