Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
While True Problem
#8
(Jan-19-2021, 10:29 PM)deanhystad Wrote: Look at for loop.

while True:

i = int(input('Integer Between 1 & 10: '))

if i in range (1,11):

break

for i in range (1,11):


print('&', end='\n')

Here is where I am at now. It it re-promting correctly if a value is entered that is not 1-10, but when 1-10 is entered it is not printing anything. I know I am missing the second half of the For Loop, but I can't figure out what it is.
Reply


Messages In This Thread
While True Problem - by StingingNeedles - Jan-19-2021, 02:56 AM
RE: While True Problem - by deanhystad - Jan-19-2021, 04:12 AM
RE: While True Problem - by perfringo - Jan-19-2021, 07:32 AM
RE: While True Problem - by StingingNeedles - Jan-19-2021, 04:21 PM
RE: While True Problem - by deanhystad - Jan-19-2021, 04:40 PM
RE: While True Problem - by StingingNeedles - Jan-19-2021, 09:42 PM
RE: While True Problem - by deanhystad - Jan-19-2021, 10:29 PM
RE: While True Problem - by StingingNeedles - Jan-20-2021, 01:18 AM
RE: While True Problem - by deanhystad - Jan-20-2021, 03:59 AM

Forum Jump:

User Panel Messages

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