# Laptop Planner
#
# | laptop | charger | Outcome                                              |
# |  yes   |   yes   | You can work normally.                               |
# |  yes   |    no   | You can work, but only until your battery runs out.  |
# |   no   |   yes   | You have to borrow a laptop to continue working.     |
# |   no   |    no   | You will have to work offline.                       |

laptop = input("Do you have your laptop? (yes/no): ")
charger = input("Do you have your charger? (yes/no): ")

if laptop == "yes" and charger == "yes":
    print("You can work normally.")
elif laptop == "yes" and charger == "no":
    print("You can work, but only until your battery runs out.")
elif laptop == "no" and charger == "yes":
    print("You have to borrow a laptop to continue working.")
else:
    print("You will have to work offline.")

# 1. Change the outcome - if the user doesn't have a laptop then they have to work offline.
# 2. [CHALLENGE] Streamline the code so that only two if checks are performed