Python Forum
Python Homework (Urgent help needed!!)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Homework (Urgent help needed!!)
#3
(Oct-03-2021, 10:07 AM)chickenseizuresalad Wrote: was to create a program which repeatedly asks the user for a number until they enter a 10.
Be this requirement need to use a while loop.
Then the basic will like this,they to not ask for lower and higher but you can add that if task say that later.
stop_number = 10
while True:
    number = int(input("Enter a 10: "))
    if number == stop_number:
         print(f"{number} entered exit out")
         break
    else:
        print(f"Wrong number <{number}> try again") 
Yoriz write Oct-03-2021, 10:47 AM:
Homework question, give the op a chance to carry on trying to solve this their self now the current error has been rectified.
Reply


Messages In This Thread
RE: Python Homework (Urgent help needed!!) - by snippsat - Oct-03-2021, 10:44 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  HELP in python homework makashito 4 4,002 Oct-12-2021, 10:12 AM
Last Post: buran
  CyperSecurity Using Python HomeWork ward1995 1 2,004 Jul-08-2021, 03:55 PM
Last Post: buran
Exclamation urgent , Python homework alm 2 2,361 May-09-2021, 11:19 AM
Last Post: Yoriz
  urgent I got a syntax errors alm 2 5,945 Feb-28-2021, 02:54 PM
Last Post: alm
Heart Urgent homework help needed Medou 4 2,790 Nov-24-2020, 09:28 AM
Last Post: buran
  Homework with python Johnsonmfw 1 1,732 Sep-20-2020, 04:03 AM
Last Post: ndc85430
  [Urgent] build code GodMaster 2 1,840 Mar-23-2020, 12:25 AM
Last Post: jefsummers
  Bifid Genkey (Urgent) Laura123 2 2,092 Mar-09-2020, 08:09 PM
Last Post: micseydel
  Python Homework Help *Urgent GS31 2 2,632 Nov-24-2019, 01:41 PM
Last Post: ichabod801
  Python Homework Question OrcDroid123 1 2,409 Sep-01-2019, 08:44 AM
Last Post: buran

Forum Jump:

User Panel Messages

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