Solution Exercise 34: extract from list scores, only the scores above the average with Python
Exercise 34 Given the list of student scores: scores = [12, 4, 14, 11, 18, 13, 7, 10, 5, 9, 15, 8, 14, 16]. Write a Python program that allows…
Python Courses & Exercises with solutions !
Exercise 34 Given the list of student scores: scores = [12, 4, 14, 11, 18, 13, 7, 10, 5, 9, 15, 8, 14, 16]. Write a Python program that allows…
Exercise 33 Write a Python program that takes a string as input and displays the characters of even index. Example: for the string s = "Python", the program returns "Pto".
Exercise 31 Write a Python program that retrieves the list of even integers and the list of odd integers from a list of numbers.
Exercise 30 Write a Python algorithm as a function that takes two lists as input arguments and returns a boolean value indicating whether or not they have at least one…
Exercise 29 Write a Python algorithm that removes duplicate items from a list.
Exercise 28 Write a Python program that tests whether a list is empty or not. Same question for a string of characters.
Exercise 27 Write Python program with two functions - sum_list() and multiply_list() - that calculate the sum and product of elements in a given list of numbers.