Code
#function name finfAverage that recieves the list of
numbers
def findAverage(numList):
sum=0;#declare a varibale called sum that initial value is 0 and
store the sum of all the element of the lsit
for number in numList:#take one number at time from the list and
add to the sum
sum+=number
#find the Average by deviding the sum by len of the list
avg=sum/len(numList)
#print the Average of the list
print("Average is :",avg)
print("\nNumbes below Average are:")
for number in numList:
#this will print the numbers below Average
if(number<avg):
print(number)
print("\n\n")
#call the fucntion findAverage wiht three different list
findAverage([10,25,45,87,9,6,8,52,36])
findAverage([10,20,30,40,50,60,80,90])
findAverage([25,50,45,10,25,20.2])
output

code snap for indentation

If you have any query regarding the code please ask me in the comment i am here for help you. Please do not direct thumbs down just ask if you have any query. And if you like my work then please appreciates with up vote. Thank You.
Write a python function that can find the average of given list of numbers. It prints...
Can someone do this python program? Write a function that accepts a list of five numbers from a user and prints the length, sum, average, and largest number of the list.
Write a python function that prints all odd numbers between two given numbers print_odd_numbers(10,20) → 11 13 15 17 19 print_odd_numbers(4,12) → 5 7 9 11 ### Your code here def print_odd_numbers(n1, n2):
Python: Given a list named listOfThings, write a function that prints out if there are an odd number of things in the list or an even number of things in the list. If there is an even number of things, your function should print There is an even number of items in the list. If there is an odd number of things, your function should print There is an odd number of items in the list. Use the following function...
1) Translate the following equation into a Python assignment statement 2) Write Python code that prints PLUS, MINUS, O ZERO, depending on the value stored in a variable named N. 3) What is printed by: 3 - 1 while 5: while 10 Print ) Page 1 of 9 4) Write a Python while loop that reads in integers until the user enters a negative number, then prints the sum of the numbers. 1-2 of 9 4) Write a Python while...
PYTHON: Do not use the list sort method or sorted function. Given a list of numbers in random order, write an algorithm that works in O(n2) to sort the list. Do not use the list sort method or sorted function. Please DO NOT USE list_sort method. the last answer did not work.
Write a program (python) that multiplies two hard-coded numbers, then prints the individual numbers out and prints their product out, all on separate lines. You can choose the two numbers that are multiplied together. Make a copy of previous exercise then modify it to print output exactly like this, rather than just the numbers on separate lines: 10 x 7 = 70 Do this using the string.format() function discussed in the lecture.
Write a Python function named print_nums that takes a single parameter, a list of float values, and prints out the list on a single line.enclosed in brackets, each value with three places after the decimal point, the values separated by two spaces. You do not have to provide comments for this code. Example 1: print_nums([3/3, 4/3, 573, 6/3]) prints: [1.000 1.333 1.667 2.000] Example 2: print_nums([3]) prints: [3.000] Example 3: print_nums([]) prints: []
Design a function in python that sums all the numbers in a multi-dimensional list of numbers. The function should accept the list as an argument. For example, give the following list [[3,5,6,8,9], [0,1,5,8,7], [2,5,9,2,4], [9,5,4,2,1]] The function should add all the numbers in the list and print the result. Analyze your solution and determine the time complexity of the function. Write the time complexity in the form of T(n) = ….
Write a function in PYTHON that reads a sequence of numbers ended by 0 and prints “Sorted” if the numbers were input in increasing or decreasing order, otherwise the program must print “Not sorted” (Do not calculate 0) Sample Input 4 3 -1 -5 0 Sample Output Sorted
Using Python Programming Language:
3. Write a function flatten that takes a 2D list and returns all the items of each list concatenated together into one new 1D list. For example: flatten ([["a", "b"],["c","0"],["e","f"]]) would return ["a", "b","C","d", "e","f"] Save the function in a PyDev library module named functions.py Write a program t03.py that tests flatten function and prints the returned flat list to the screen. Test your program with a different list, hardcoded in t03.py • Copy the results...