If, Elif and Else (Python)


SUBMITTED BY: Guest

DATE: May 1, 2013, 12:44 a.m.

FORMAT: Python

SIZE: 248 Bytes

HITS: 1373

  1. bitcoin_amount = 1
  2. if bitcoin_amount == 1:
  3. print "You have the perfect amount!"
  4. elif bitcoin_amount > 1:
  5. print "You have enough, here is your change."
  6. else bitcoin_amount < 1:
  7. print "You have insufficient funds."

comments powered by Disqus