Syntax Error


#1

On line 27, it tells me SyntaxError: can’t assign to literal what/why is this and how do I stop it?!

MY PYTHON PROGRAM

game=""
assembly=""
import time

#introduction to the program
print(“Hello and welcome to the school timetable creator!”)
time.sleep(2)
name = input("Before we begin, what is your name? ")
year = input("Hello " + name + "! What year are you in? ")
print("Thank you " + name + “!”)
time.sleep(1.5)

#checks what day they have games/assembly
if year == 7:
_ games = “Monday” and assembly = “Thursday”_
elif year == 8:
_ games = “Friday” and assembly = “Tuesday”_
elif year == 9:
_ games = “Tuesday” and assembly = “Wednesday”_
elif year == 10:
_ games = “Thursday” and assembly = “Friday”_
elif year == 11:
_ games = “Wednesday” and assembly = “Monday”_
elif year == 12:
_ games = “Wednesday” and assembly = “Friday”_
else:
_ games = “Wednesday” and assembly = “Friday”_

#starts asking the user about their lessons
print("As you are in year " + year + ", your games day is on " + games + " and your year assembly is on " + assembly + “.”)


#2

5 is a value literal, 5 is 5

if you assign 10 to 5
well, you can’t, 5 is a value, it doesn’t refer to other values it is one

or in other words, those two puzzle pieces do not fit together.

try assigning to a variable instead. or perhaps you didn’t mean to do assignment at all - it’s up to you to figure out what you meant at that location in your code.