Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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 Support For Data Mining Applications Discovering Knowledge With Inductive Queries Lnai 2682

Authors: Rosa Meo ,Pier L. Lanzi ,Mika Klemettinen

2004th Edition

3540224793, 978-3540224792

More Books

Students also viewed these Databases questions

Question

In Problems 3942, find the area of the shaded region. 2

Answered: 1 week ago

Question

Name the following organic compounds, show details

Answered: 1 week ago

Question

To find integral of sin(logx) .

Answered: 1 week ago

Question

What is Centrifugation?

Answered: 1 week ago

Question

To find integral of ?a 2 - x 2

Answered: 1 week ago

Question

To find integral of e 3x sin4x

Answered: 1 week ago

Question

You have

Answered: 1 week ago