Monday, October 31, 2016

Blog 21

Write a python program (using an IF-THEN-ELSE) that prints "I'm going to eat lunch inside!" if it is
raining, and "I'm going to eat lunch outside!" if it
is not raining. Raining should be a Boolean variable and try to do it in 5 lines.

14 comments:

  1. If(It is raining):
    (indent)print ("I'm going to eat lunch inside.")
    else:
    (indent)print ("I'm going to eat lunch outside.")
    -Joe Haj

    ReplyDelete
  2. Chris VanYe
    raining = True
    if raining :
    print "I'm going to eat lunch inside!"
    else:
    print "I'm going to eat lunch outside!"

    ReplyDelete
  3. raining = True

    if raining:
    >print ("I'm going to eat lunch inside.")

    else:
    >print("I'm going to eat lunch outside.")

    -Katelyn

    ReplyDelete
  4. is_raining = True

    if is_raining:
    print("I'm going to eat lunch inside!")
    else:
    print("I'm going to eat lunch outside!")

    - Abby Peterson

    ReplyDelete
  5. raining = False
    if raining:
    print "I'm going to eat lunch outside!"
    else:
    print "I'm going to eat lunch outside!"

    - Owen Luther

    ReplyDelete
  6. if raining == True:
    print("I'm going to eat inside")
    else:
    print("I'm going to eat outside!")
    ~Travis Vonheeder

    ReplyDelete
  7. is_raining = True
    if True:
    print "I'm going to eat lunch inside!"
    else:
    print "I'm going to eat lunch outside!"
    -Ben

    ReplyDelete
  8. raining = True
    if True:
    print "I'm going to eat lunch inside!"
    else:
    print "I'm going to eat lunch outside!"

    Josh Lee

    ReplyDelete
  9. weather = input("Is it raining?:")
    If weather = yes
    Then print("I'm going to eat lunch inside!")
    If weather = no
    then print("I'm going to eat lunch outside!"
    -Sean


    ReplyDelete
  10. rain=True
    if rain:
    print"I'm going to eat lunch inside!"
    else:
    print"I'm going to eat lunch outside!"
    CHarlie Lin

    ReplyDelete
  11. raining = ("Is it raining?")
    If raining = true
    print ("I'm going to eat lunch inside!")
    If raining = false
    print ("I'm going to eat lunch outside!")

    Alex Haston

    ReplyDelete
  12. rain = True
    print"I'm going to eat lunch inside!"
    if rain:
    print "I'm going to eat lunch inside!"
    Otherwise, the print on line 12 happens.
    else:
    print "I'm going to eat lunch outside!"
    -Lux lei

    ReplyDelete
  13. if rain = True

    print "Where I should eat lunch?"

    if rain:
    print "I'm going to eat lunch inside!"
    Else:
    print "I'm going to eat lunch outside!"
    -Gary

    ReplyDelete
  14. raining = True


    if raining:
    print "Im going to eat lunch inside!"
    else:
    print "Im going to eat lunch outside."


    jonathan

    ReplyDelete