Solution Exercise 82: Python algorithm which determines the list of words containing at least 2 identical successive characters
Exercise 82 Write a program in Python which determines the list of words containing two successive identical characters in a character string s. Example if s = "Python is the…
Solution Exercise 79: Python algorithm which returns pairs of elements and their occurrences in a list
Exercise 79 Write using the count() method, a python algorithm as a function which takes as parameter a list of integers L and which returns without repetitions the list of…
Solution Exercise 78: Python algorithm that returns the firts index of the average that is less than 10
Exercise 78 Given a list made up of the students' averages avg_list, write a python algorithm that determines the first index of the average which is less than 10. Example…
Solution Exercise 77: python algorithm which determines the first index of the maximum of a list without using the max() method
Exercise 77 Repeat the previous exercise (Exercise 76) without using the max() method. Solution def maxList (L): # initialization of the index of the maximum of the list i =…
Solution Exercise 76: python algorithm to find the index of the maximum of a list
Exercise 76 Write a Python algorithm that determines the first index of the maximum in a given list using the max () method. Example if L = [22, 7, 88,…
Solution Exercise 75: reverse a list without using the reverse method
Exercise 75 Write a Python algorithm to reverse a list without using the reverse() method Solution def reverseList (L): # initialization of the reversed list reverseL = [] for i…
Solution Exercise 74: list of numbers entered without repetition
Exercise 74 Write a Python algorithm that asks the user to enter successively 7 integers and display the list of numbers entered by ignoring repeated numbers. Example if the user…