Question: Write python commands to perform the following in jupyter notebook- 1. Assign any values to two variables x and y, perform any 5 arithmetic operations

 Write python commands to perform the following in jupyter notebook- 1.

Write python commands to perform the following in jupyter notebook- 1. Assign any values to two variables x and y, perform any 5 arithmetic operations on said variables and print the result. 2. Create a list with days of the week (starting from Monday) and perform the following operations- a. Display only the middle three days. b. Remove the first and last days from the list. c. Display alternate days from the list (starting from Index 0). d.pop() and sort() the list and display the output. 3. Create a new list of your choice with as many items as the list from Q2. And perform the following operations- a. Zip() both the lists into a dictionary. b. Print the dictionary. C. Clear() the dictionary. 4. Create a python loop to print the following- 5. Create a nested if-else with your own conditions

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!