Python Forum
Simple beginner query--Please help!Thanks
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simple beginner query--Please help!Thanks
#1
Hi everyone,

I am a very fresh learner and have a question regarding the guess number game below. Please help!

My question is the result still goes 'Let's try again' even when I try 9, which is the correct one.

The code I type:
>>> while True:
      value=input("Please guess a number:")
      if value==int('9'):
        print("Good!")
      else:
        print("Let's try again!")
        continue
        break
....
Reply


Messages In This Thread
Simple beginner query--Please help!Thanks - by Nienie - Jun-26-2020, 07:59 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Query in list.clear (beginner) Shaswat 1 1,908 Apr-30-2019, 01:54 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020