+ 2

What's wrong with this?

I started my text adventure and I got to this part and this pops up: if e >= 0 and <= 5: SyntaxError: invalid syntax What is wrong?

6th Feb 2017, 2:21 AM
DerpyOmnister
DerpyOmnister - avatar
4 Answers
+ 6
u need to put something before <= 5 like this if e >= 0 and e <= 5:
6th Feb 2017, 2:40 AM
Kawaii
Kawaii - avatar
+ 5
With Python, you can shorhand this kind of statement in a more 'natural' way: if 0 <= e <= 5: ... or obviously: if 5 >= e >= 0: :)
7th Feb 2017, 8:21 PM
visph
visph - avatar
+ 3
np
6th Feb 2017, 2:51 AM
Kawaii
Kawaii - avatar
+ 2
Thanks Alot! my part of the game works Now! Thx Alot!
6th Feb 2017, 2:51 AM
DerpyOmnister
DerpyOmnister - avatar