Question: Create a Python script file called Exercise _ Ch 0 5 - 3 _ yourLastName.py . ( Replace yourLastName with your last name. ) Write
Create a Python script file called ExerciseChyourLastName.pyReplace yourLastName with your last name.
Write a Python program that takes a list of integers as input, and using "for" loop find out sum of odd numbers, sum of even numbers, largest number and smallest number in the list. You need to provide this list to your program, your program doesn't need to take the list from user.
Make sure your program will produce correct output.
Submit your program file.
Use "for" loop to calculate. Do not use "while" loop.Use only one loop to do all calculation, multiple loops are not allowed.
Use of "Min" or "Max" is not allowed.
OUTPUT:
Sum of even numbers is:
Sum of odd numbers is:
Largest number in the list is:
Smallest number in the list is:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
