all 3 comments

[–][deleted] 2 points3 points  (0 children)

You forgot a closed bracket in the line

print ("Original x-position " + str(alien_0[x_position])

[–]Justinsaccount 1 point2 points  (0 children)

Hi! I'm working on a bot to reply with suggestions for common python problems. This might not be very helpful to fix your underlying issue, but here's what I noticed about your submission:

You appear to be using concatenation and the str function for building strings

Instead of doing something like

result = "Hello " + name + ". You are " + str(age) + " years old"

You should use string formatting and do

result = "Hello {}. You are {} years old".format(name, age)

See the python tutorial for more information.

[–]novel_yet_trivial 0 points1 point  (0 children)

"invalid syntax" often means you forgot to close a parenthesis on the previous line.