Question: 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

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!