Mega Code Archive

 
Categories / Python / Data Type
 

A value as a condition

money = int(raw_input("Tips:'? ")) if money:     print "Ah, I am reminded of a table.  Right this way." else:     print "Please, sit.  It may be a while."