diff --git a/day3.py b/day3.py index c6b5a84..4bb2395 100644 --- a/day3.py +++ b/day3.py @@ -18,11 +18,23 @@ # print("you are adult") # else: # print("you are teenager ") - + +# Chained Condition +"""A chained condition in a Python conditional statement (like an if statement) means combining multiple logical checks using the keywords and and or.""" + +# attendance = 95 # percent +# grade = 82 # percent + +# if attendance >= 90 and grade >= 70: +# print("Pass: High attendance AND high grade.") +# else: +# print("Fail: Did not meet both criteria.") +# Output: Pass: High attendance AND high grade. # Q1 => take a number from user and check the given number is Odd or Even # Q2 => take 3 number from user and check greater among All - +# Q3 => write a program that displays dicount given to customers male customers get 7.5% discount and female get 10% discount +# Q4 => Write a program that takes a temperature in kelvin, convert to celcius and tells the user if it is hot, cold, normal, cool, or warm # ----------------------------Loop In Python ------------------------------- @@ -91,4 +103,5 @@ # for i in range(10): # pass - \ No newline at end of file + +