Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

use jupyter notbook Q1 part A ''' write a program to remove the item present at index 3 and add it to the 2nd position

use jupyter notbook

Q1 part A

'''

write a program to remove the item present at index 3 and add it to the 2nd position and at the end of the list.

sample_input = [54, 44, 27, 79, 91, 41]

sample output = [54, 44, 79, 27, 91, 41, 79]

'''

part b

'''

slice the below list into 3 equal parts, reverse each part and print it as 3 separate list.

input = [11, 45, 8, 23, 14, 12, 78, 45, 89]

note: should only use use slicing

'''

part c

'''

write a python program wich accepts a sequence of comma-separated numbers from user and generate a list and tuple with those numbers.

sample data : 8, 24, 65, 3

output :

list : ['8', '24', '65', '3']

tuple : ( '8', '24', '65', '3')

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

Building The Data Warehouse

Authors: W. H. Inmon

4th Edition

0764599445, 978-0764599446

More Books

Students also viewed these Databases questions

Question

Evaluate the impact of unions on nurses and physicians.

Answered: 1 week ago

Question

Describe the impact of strikes on patient care.

Answered: 1 week ago

Question

Evaluate long-term care insurance.

Answered: 1 week ago