Question: Write a python code for these problems 1. Write a python function which calculates the product of all integers in a list. Write additional statements

Write a python code for these problems

1. Write a python function which calculates the product of all integers in a list. Write additional statements that calls this function and passes the list - [3,4,5,6,5.5,10.1234].

2. Create tuples with the values informatics, fall, semester, I501, 2017, 74, students and print each value using for loop.

3. l1= ['student','python', 'script'] l2 =['student','java','program']

for the given lists, show the value equality, object equality and print id for each of the lists.

4. list1 = ['smith', 'john', 'andy'] list2 = ['kim', 'mary', 'paul'] list3 = ['saptarshi', 'venu', 'asha']

Write a python program which does the following:

a. add items in list3 to list2

b. Remove saptarshi from list3

c. Insert sam at 5th position of the 3 lists combined

d. Sort the elements of the combined list in ascending order

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!