Question: -----Python----- Create a list that holds 10 random numbers in a range of 1 to 10. Now use a while loop to only print the

-----Python-----

  1. Create a list that holds 10 random numbers in a range of 1 to 10. Now use a while loop to only print the values in the list that are divisible by 3.

2. Create a function called holList with the parameters: list1, list2. Inside the function you will concatenate the lists passed into a variable called holidays. Now use a FOR loop to append to a new list called newHolidays ALL items in the list EXCEPT "Black Friday". (Because it isn't a real holiday.) Outside of the function, create two lists. One holds: New Years Day, Easter, Fourth of July as three strings. The second one holds: Halloween, Thanksgiving, Black Friday, Christmas as four strings. Now pass those two lists into a function call for holList.

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 Databases Questions!