Conditional Structure Exercises
To pay a certain tax you must be over 16 years old and have an income equal to or greater than € 1000 per month. Write a program that asks the user their age and monthly income and shows on the screen whether the user has to pay taxes or not.
Solution:
Method 01:
age = int(input("What is your age?"))
income = float(input("What is your monthly income?"))
if age > 16 and income >= 1000:
print("You have to Pay")
else:
print("You don't have to pay")
Output:

Method 02:
age = int(input("What is your age?"))
income = float(input("What is your monthly income?"))
if age <= 16 or income < 1000:
print("You don't have to Pay")
else:
print("You have to Pay")
Output:

#Python Programming Importance
Hope You will learn Something. Happy Coding