-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconditional_statement.py
More file actions
30 lines (26 loc) · 859 Bytes
/
conditional_statement.py
File metadata and controls
30 lines (26 loc) · 859 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
#totalmarks = 35
#if totalmarks >= 90:
# print("congrats you have secured 'A' grade ")
#elif totalmarks >= 40:
# print("congrats you have secured 'D' grade")
#elif totalmarks <=39:
# print("You have failed the exam")
#else:
# print("You have secured 'B' grade")
# Nested if
#totalmarks = 100
#if totalmarks >=90:
# print("congrats you have secured 'A' grade")
# if totalmarks == 100:
# print("You have also secured full marks")
#totalmarks =95
#attendance =90
#if totalmarks >= 90 and attendance >= 90:
# print("you are a very disciplined student")
#totalmarks =80
#attendance =80
#if totalmarks >= 90 or attendance >= 90:
# print("you are a very disciplined student") # if 2 are also wrong ntg will be printed
fruit ="Apple"
if fruit =="Mango" or fruit == "Apple":
print("I like that fruit")