I`m new to python and I do`t understand why it repond:invalid syntax when I run this:

x=12
y=7
z=8
if x<y and y<z: print ('z is the largest')
elif x<y and y>z: print ('y is the largest')
else print (x is the largest')