Question: 1. Write a Python function to sum all the numbers in a list. Sample List: (8, 2, 3, 0.7) Expected Output: 20 2. Write a

 1. Write a Python function to sum all the numbers in

1. Write a Python function to sum all the numbers in a list. Sample List: (8, 2, 3, 0.7) Expected Output: 20 2. Write a Python function to multiply all the numbers in a list. Sample List : (8, 2, 3, -1,7) Expected Output: -336 3. Write a Python program to print the even numbers from a given list. Sample List: [1, 2, 3, 4, 5, 6, 7, 8, 9] Expected Result : [2, 4, 6, 8] 4. Write a Python program to calculate the length of a string 5. Write a program to print every character of a string entered by user in a new line using loop. 6. Write a program to check if the letter 'e' is present in the word 'Umbrella'. 7. Write a program to check if the word 'orange' is present in the "This is orange juice". 8. Write a Python program to reverse a string using loop. Sample String : "1234abcd" Expected Output: "dcba4321" 9. write a python function to find max element in a list. 10. what is a function? what is difference between void function and value-returning function? Give an example for each

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!