Solution Exercise 25: list of words that do not contain the letter 'a' in a given text
Exercise 25 Write a Python program that determines the list of words not containing the letter 'a' in a given text. Solution def wordWithout_a (T): #initialize the list of words…
Solution Exercise 24: index of an element in a list without using the index() method
Exercise 24 Write a Python algorithm as a function which takes as parameter a couple (L, a) formed by a list L and an element 'a' and which returns the…
Solution Exercise 23: number of occurrences of a character in a Python list without using any predefined functions
Exercise 23 Write an algorithm in python that returns the number of occurrences of an 'a' element in a given list L without using any predefined functions in Python. Example…
Solution Exercise 22: List of duplicate elements without using the count() method
Exercise 22 Write an algorithm in python that returns the list of duplicate elements of a given list without using any predefined functions in Python. Example if L = [7,…
Solution Exercise 21: Python algorithm that determines the list of duplicate elements
Exercise 21 Write a Python algorithm that returns the list of duplicate elements of a given list. Example if L = [7, 23, 5, 12, 7, 19, 23, 12, 29],…
Solution Exercise 20: maximum of given list without using the max() method
Exercise 20 Write a Python algorithm which returns the maximum of the list without using any predefined function in Python. Solution def maximumList (L): # initialization of the list maximum…
Solution Exercise 19: python algorithm that searches for the minimum of a list
Exercise 19 Write an algorithm in python as a function which takes as parameter a list of numbers L and which returns the minimum of the list without using any…