Re: [Tutor] print() invalid syntax error

2014-12-23 Thread Alan Gauld
On 23/12/14 18:27, stuart kurutac wrote: Hello all, I've come across an invalid syntax error on 2 occassoins now. > For the life of me I can't see what's wrong. finish = (int(input("Finish: ")) print("word[", start, ":", finish, "] is", end=" ") When I run this through

Re: [Tutor] print() invalid syntax error

2014-12-23 Thread Adam Jensen
On Tue, 23 Dec 2014 18:27:10 + stuart kurutac wrote: > finish = (int(input("Finish: ")) The parenthesis aren't balanced. I would have written it as: finish = int(input("Finish: ")) but something like this should also work: finish = (int(input("Finish: "))) ___

[Tutor] print() invalid syntax error

2014-12-23 Thread stuart kurutac
Hello all, I'm working my way through the Michael Dawson book "Python Programming for the Absolute Beginner" and I've come across an invalid syntax error on 2 occassoins now. For the life of me I can't see what's wrong. I've checked and re-checked I've typed in the code from the book correctly,