Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

-----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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications Dexa 2021 Workshops Biokdd Iwcfs Mlkgraphs Al Cares Protime Alsys 2021 Virtual Event September 27 30 2021 Proceedings

Authors: Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil ,Bernhard Moser ,Atif Mashkoor ,Johannes Sametinger ,Anna Fensel ,Jorge Martinez-Gil ,Lukas Fischer

1st Edition

3030871002, 978-3030871000

More Books

Students also viewed these Databases questions

Question

Example. Evaluate 5n+7 lim 7-00 3n-5

Answered: 1 week ago

Question

D How will your group react to this revelation?

Answered: 1 week ago