print("Select a task from 1 - 5") task =int(input()) if task == 1: print("Task 1") print("---------------") age =int(input("How old are you? ")) if age >= 65: print("You're old aka retired") else: if age > 18: print("Work harder") else: print("You're a child. Do nothing") elif task == 2: print("---------------") print("Task 2") print("---------------") age =int(input("For real, How old are you? ")) if age >= 65 : print("You're old aka retired") elif age > 18: print("Work harder") else: print("You're a child. Do nothing") elif task == 3: print("---------------") print("Task 3") print("---------------") month = int(input("Enter the current month in number: ")) print("As in Jan = 1, Feb = 2......") print("Option 1") if month >= 1 and month <=3: print("It's summer. Enjoy the heat") elif month >3 and month <=6: print("It's autumn. ") elif month >6 and month <=9: print("It's winter. Why is it so cold?") elif month >9 and month <=12: print("It's spring") else: print("Invalid month") print("Option 2") if month >= 1 and month <=2 or month == 12: print("It's summer. Enjoy the heat") elif month >2 and month <=5: print("It's autumn. ") elif month >5 and month <=8: print("It's winter. Why is it so cold?") elif month >8 and month <=11: print("It's spring") else: print("Invalid month") elif task == 4: print("---------------") print("Task 4") print("---------------") score =int(input("What's your grade: ")) if score >= 90 and score <=100 : print("A") elif score >= 80 and score <90: print("B ") elif score >= 70 and score <80: print("C") elif score >= 60 and score <70: print("D") elif score >= 50 and score <60: print("E") elif score >= 0 and score <50: print("FAIL!") else: print("Invalid score") elif task == 5: print("---------------") print("Task 5") print("---------------") num1 =int(input("Enter an integer: ")) num2 =int(input("Enter an integer again: ")) print("-----------MENU-----------") print("1 - Add the numbers") print("2 - Subtract the second number from the first number") print("3 - Multiply the numbers") option =int(input("Enter your selection: ")) if option == 1: total = num1 + num2 print("Total number is = ", total) elif option == 2: sub = num1 - num2 print("Sub number is = ", sub) elif option == 3: mul = num1 * num2 print("Mult = ", mul) else: print("Invalid option")