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