-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path07_conditions.py
44 lines (42 loc) · 963 Bytes
/
07_conditions.py
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
32
33
34
35
36
37
38
39
40
41
42
43
44
a = 33
b = 200
if b > a:
print("b is greater than a")
#------------
a = 200
b = 33
if b > a:
print("b is greater than a")
else:
print("b is not greater than a")
#------------------
age = int (input("Enter your age : "))
print("Your age is :",age)
if(age>18):
print(" you can drive")
else:
print("You can not drive")
print("i can run in boh condition")
#------------------------------------
num=9
if(num<20):
print("Number is smaller")
elif(num>=10 and num==10):
if(num==10):
print("numbe is found")
else:
print("Nt found")
else:
print("Negatie number is found")
#-----------------------------------
print("-----STUDENT GRADES----------")
marks = int(input(" enter marks"))
if(marks>=90):
print("You have got A+ grade")
elif(marks>=80 and marks<90):
print("You have got B garde")
elif(marks>=60 and marks<80):
print("You have got D grade")
else:
print("You have got F grade")
print("You are fail")