Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions day3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 -------------------------------

Expand Down Expand Up @@ -91,4 +103,5 @@

# for i in range(10):
# pass