Skip to content

Instantly share code, notes, and snippets.

@mhassanist
Created January 1, 2024 10:34
Show Gist options
  • Save mhassanist/29b6e0dcb210238f553bf188b4fe3b4a to your computer and use it in GitHub Desktop.
Save mhassanist/29b6e0dcb210238f553bf188b4fe3b4a to your computer and use it in GitHub Desktop.
session_code_jan_1_2024
from datetime import date
print("Al-Nakba, also known as the Palestinian Catastrophe, took place in 1948. This term describes the events that followed the establishment of the state of Israel and the resulting displacement of numerous Palestinian Arabs.")
print ("In which year did Al-Nakba occur in Palestine?")
#answer is a variable
answer = input ()
if answer.strip() == "1948":
print ("Correct Answer!")
else:
print("Wrong Answer!")
print("What is the capital of Palestine?")
answer2 = input()
if answer2.strip().lower() == "Alquds".strip().lower():
print ("Correct Answer!")
else:
print("Wrong Answer!")
# date_str = '2023-02-28'
# date_format = '%Y-%m-%d'
# date_obj = date.strptime(date_str, date_format)
# print(date.today() - date_obj)
answer3 = input("How many days have passed since the beginning of Toofan AlAska?:\n")
#input today's date
#1/1/2024
#subtract 7/10/2023
#save num_days
if answer3 == "86":
print ("Correct Answer!")
else:
print("Wrong Answer!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment