Jump to content
  • Sky
  • Mint
  • Azure
  • Indigo
  • Blueberry
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Pomegranate
  • Ruby Red
  • Orange
  • Banana
  • Apple
  • Emerald
  • Teal
  • Chocolate
  • Slate
  • Midnight
  • Maastricht
  • Charcoal
  • Matte Black
Sign in to follow this  
-khaled-

General Can i get help with pyton 3.6 ? (simple)

4 posts in this topic

Recommended Posts

Yeah I know I suck at this but I can't figure it out.

Making a "Guessing game" but I'm getting an error that I don't know how to fix.

I know this is basic. welp

import random

Num = random.randint(1, 100)

MyNum = input("from 1 to 100! Guess!!: ")

while Num > MyNum:
              print("Higher!")
    elif Num < MyNum:  #Error here
              print("Lower!")
    elif Num == MyNum:
              print("YOU GOT IT!")
      

 

Edited by -khaled-

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Similar Content

  • Recently Browsing   0 members

    No registered users viewing this page.


    • Administrator |
    • Global Moderator  |
    • Moderator  |
    • ViP Plus |
    • ViP |
    • Cheater |
    • Modder  |
    • Novice Cheater |
    • Rookie Modder |
    • Contributor |
    • GFX Team  |
    • Senior Member |
    • Member |
×