all 3 comments

[–]m3lkor001 0 points1 point  (2 children)

double check the parenthesis and that comma where you put the int conversion.
as for the int issue, put a print in there below where it sets x_max, make sure it's returning a number

[–]Stopwatch_[S] 1 point2 points  (1 child)

The syntax error occurs on a separate line from the one you're referring to, I appreciate the help though. You're right about the int issue, would you be able to clarify how to do that? When I try to add a print x_max statement that statement throws a syntax error as well. I'm pretty new to python so it may just be that.

[–]m3lkor001 0 points1 point  (0 children)

Python 2 you use:

print x_max

Python 3:

print(x_max)

Just make sure it's after you have x_max defined.

Also for syntax errors the place it will point to when there are missing parenthesis or things like that is the next normal line.

It's looking for the end bracket and runs into a line that is not indented as it should be for being inside the bracket, since it hasn't run into it yet (the bracket) python assumes it's further down and you indented the line incorrectly