python - Newbie query about conditional statements -


i'm learning python , can't work out why following doesn't work.

can advise? code below

thanks


# make sure the_flying_circus() returns true  print "what number?" num = input() print "what bla?" bla = input()  def the_flying_circus():     if num ==4 , bla=="bla":    # start coding here!         return true         print "well done!"         # don't forget indent         # code inside block!     elif num == 2 or bla== zog:         print "ok"         # keep going here.         # you'll want add else statement, too!     else:         print "bad luck!" the_flying_circus() 

the return true not want have on top of if block. try removing it.


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -