1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Homework

Discussion in 'Off-Topic' started by QuiverlyRivalry, Nov 9, 2017.

  1. QuiverlyRivalry

    QuiverlyRivalry Zombie Pigman

    Messages:
    491
    GitHub:
    quiverlyrivalry
    Okay, offest topic ever... not even sure thats a word but...
    I need help with my Homework xD
    upload_2017-11-9_17-53-47.png
     
  2. QuiverlyRivalry

    QuiverlyRivalry Zombie Pigman

    Messages:
    491
    GitHub:
    quiverlyrivalry
    upload_2017-11-9_18-6-15.png
    What I have so far, still working on it
     
  3. QuiverlyRivalry

    QuiverlyRivalry Zombie Pigman

    Messages:
    491
    GitHub:
    quiverlyrivalry
    *Update*
    I did some code, now it wont say "You will get wet!"
    [​IMG]
     
  4. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    Code:
    isRain = (input("Is it raining?").lower() == "yes");
    hasUmbrella = (input("Do you have an umbrella?").lower() == "yes");
    isWindy = (input("Is it windy?").lower() == "yes");
    
    if isRain and (not hasUmbrella):
      print("You will get wet!");
    else:
      print("You'll be fine, go have fun!");
    
    no words.
     
    HimbeersaftLP likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.