More than or less than - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Homework (https://python-forum.io/forum-9.html) +--- Thread: More than or less than (/thread-3664.html) |
More than or less than - Splodge_123 - Jun-11-2017 Hi, I am relatively new to python and was wondering if someone could tell me what the python syntax is for 'more than' and 'less than'. I have tried the < and > symbols and am told - invalid syntax. Thanks https://pasteboard.co/hmKmKVVZk.png https://pasteboard.co/hmL9f7yyJ.png Some screen shots of the problem RE: More than or less than - buran - Jun-11-2017 please, don't post images. copy paste code, traceback, etc. in respective tags. as to the problem if pay < 1000: RE: More than or less than - rrashkin - Jun-12-2017 In both Pythons 2 & 3, the convenient shortcut notation: a<x<bworks great. That is, the expression returns TRUE if x is greater than a and less than b. |