Question: IN PYTHON PLEASE Program Specifications Write a program to calculate the minimum, maximum, mean, median, mode, and whether a list is a palindrome. Note: This
IN PYTHON PLEASE Program Specifications Write a program to calculate the minimum, maximum, mean, median, mode, and whether a list is a palindrome.
Note: This program is designed for incremental development. Complete each step and submit for grading before starting the next step. Only a portion of tests pass after each step but confirm progress.
Step Review the template code. A list is filled with integers from standard input.
Step pts Use a loop to determine and output the minimum and maximum values in the list. Submit for grading to confirm one test passes.
Ex: If input is:
the output is:
Minimum: Maximum:
Step pts Sum all list elements and calculate the mean or average Output the mean with one decimal place using printfMean: mean:f
Ex: If input is:
the output is:
Minimum: Maximum: Mean:
Step pts Use a loop to determine if the list is a palindrome, meaning values are the same from front to back and back to front. Output "True" or "False". Submit for grading to confirm three tests pass.
Ex: If input is:
the output is:
Minimum: Maximum: Mean: Palindrome: True
Step pt The template code includes a call to sort which sorts the list elements into ascending order. Do not sort the list before step After sorting, identify the median. The median is located in the middle of the list if the list's length is odd. Otherwise, the median is the average of the middle two values. Output the median with one decimal place. Submit for grading to confirm four tests pass.
Ex: If input is:
the output is:
Minimum: Maximum: Mean: Palindrome: False Median:
Step pts Challenging! Identify the mode after the list is sorted in ascending order. The mode is the value that appears most frequently. Assume only one mode exists. Hint: Use a loop to process each list element, looking for the longest sequence of identical values. Submit for grading to confirm all tests pass.
Ex: If input is:
the output is:
Minimum: Maximum: Mean: Palindrome: False Median: Mode:
# Step : Input values
nums intn for n in inputsplit
# Step : Find minimum and maximum values
# Type your code here.
# Step : Calculate mean
# Type your code here.
# Step : Check if palindrome
# Type your code here.
# Sort List
nums.sort
# Step : Find and output median
# Type your code here.
# Step : Find and output mode
# Type your code here.
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
