Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: While loop help
Post: RE: While loop help

[/quote] If you want to repeat an operation like remove, you do a loop. Like your while loop. A for loop would be better in this case. [/quote] lis = [] while len(lis) < 20: i = random.rand...
Element346 Homework 7 4,815 Jun-08-2017, 01:49 AM
    Thread: While loop help
Post: RE: While loop help

(Jun-07-2017, 08:45 PM)Element346 Wrote: The remove method only removes one instance of the number, as you discovered. So you need to remove that number x times, where x is how many times the number...
Element346 Homework 7 4,815 Jun-08-2017, 12:30 AM
    Thread: While loop help
Post: RE: While loop help

Thank you Larz you are da bomb. Due to my level of frustration and the amount that you have helped I am going to ask another question. Here are the instructions followed by my attempt at completing ...
Element346 Homework 7 4,815 Jun-07-2017, 08:45 PM
    Thread: While loop help
Post: While loop help

Hello, I am very new to python and I feel very stuck. Here is my homework problem followed by what I have tried: ##### Step 3: ##### Create loop that adds 20 random numbers between 0 and 10 to a list...
Element346 Homework 7 4,815 Jun-07-2017, 11:12 AM

User Panel Messages

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