Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Databases DeMYSTiFieD

Authors: Andy Oppel

2nd Edition

0071747990, 978-0071747998

More Books

Students also viewed these Databases questions

Question

Different formulas for mathematical core areas.

Answered: 1 week ago

Question

What does Processing of an OLAP Cube accomplish?

Answered: 1 week ago