Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem One Use list comprehension to produce the following output: [0, 1, 16, 81, 256, 625, 1296, 2401, 4096, 6561, 10000, 14641, 20736, 28561, 38416,

image text in transcribed

image text in transcribed

image text in transcribed

Problem One Use "list comprehension" to produce the following output: [0, 1, 16, 81, 256, 625, 1296, 2401, 4096, 6561, 10000, 14641, 20736, 28561, 38416, 50625, 65536, 83521, 184976, 138321] Requirements:code must be one line PASTE CODE and OUTPUT HERE Problem Two (1) Research Roulette wheels, and make a list of all possible slots, within the wheel, such as "RED 23." Include 0 and 00. (2) Randomly select a slot (3) Create a list called LOG, and place each selection in the log, LEFTSIDE first. PASTE CODE and OUTPUT FOR A FEW TRIES HERE Problem Three Make a list of people you'd like to invite to dinner. Add them using the following design: The user is asked to name each guest, one by one. - Each answer is added to a list called "DinnerGuests." ; print list when done. PASTE CODE and OUTPUT FOR A FEW GUESTS HERE Problem Four Create a script which yields the propositional logic for BITWISE AND (Conjunction). BITWISE OR (Disjunction). BITWISE XOR (EXCLUSIVE OR). Logical AND. Logical OR. Addition, Multiplication, and Bitwise NOT Inversion. THE OUTPUT SHOULD BE FORMATTED IN SIMILAR FORMAS THE RESULT OF BELOW IMAGE: La logic-py - C:/Python34/logic-py 6.4.3) File Edit Format Run Options Window Help print(" Y OR") for x in (0,1]: for y in [0,1]: print (x,y, x1y)

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

More Books

Students also viewed these Databases questions

Question

7. What decisions would you make as the city manager?

Answered: 1 week ago

Question

8. How would you explain your decisions to the city council?

Answered: 1 week ago