Write Python Commands Perform Following Jupyter Notebook 1 Assign Values Two Variables X Y Q43901000
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. Show transcribed image text 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.
Expert Answer
Answer to Write python commands to perform the following in jupyter notebook- 1. Assign any values to two variables x and y, perfo…
OR