Question: Create an empty list using the following code count_by_fives = []. 2. Using a for loop and range(), append all numbers between 0 - 100

Create an empty list using the following code count_by_fives = [].

2. Using a for loop and range(), append all numbers between 0 - 100 counting by 5's into the list. Example: 0 5 10 15 20 25 30 35 ...all the way to 100.

3. Print the count_by_fives list to show that the list was created correctly.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!