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-----
- 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started