Procedure flow chart

mynumber = 6

while True
     guess = int (input())
     if guess > myNumber:
         print('>')
     elif guess < myNumber:
         print('<')
     else:
         print('')Type "copyright", "credits" or "license()" for more information.
         break

  

Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> 3>2
True
>>> 3<2
False
>>> 3==2
False
>>> 3<>2
SyntaxError: invalid syntax
>>> 3<>2
SyntaxError: invalid syntax
>>> 3!

SyntaxError: invalid syntax
>>>

  

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325228535&siteId=291194637