Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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. 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
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