-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoddoreven.py
More file actions
32 lines (30 loc) · 926 Bytes
/
oddoreven.py
File metadata and controls
32 lines (30 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
num = int(input('Enter your number: '))
if num%2 == 0:
print("It is an even number")
else:
print("It is an odd number")
age = int(input('Enter your age: '))
if age >= 18 :
print("You are eligible to vote")
else:
print('You are not eligible to vote')
age1 = int(input('Enter your age: '))
if age >= 18 and age <=60 :
print("You are eligible to work")
else:
print('You are not eligible to work')
marks = int(input('Enter your marks: '))
if marks>=0 and marks<=100 :
print("Your marks are valid")
else:
print('Your marks are not valid')
gender = str(input("Enter your gender: "))
if gender == 'Male' or gender == 'male':
print("you are a man")
else:
print("you are a women")
letter = str(input("Enter your Letter: "))
if letter == "a" or letter == "e" or letter == "i" or letter == "o" or letter == "u":
print('Your letter is an vowel')
else:
print('Your letter is a consonant')