Solution Exercise 29: list of words containing at least one number
Exercise 29 Write a Python algorithm that determines the list of words containing at least one digit in a given T text. Solution # creation of a function which detects…
Python Courses & Exercises with solutions !
Exercise 29 Write a Python algorithm that determines the list of words containing at least one digit in a given T text. Solution # creation of a function which detects…
Exercise 28 Write a Python algorithm that determines the list of words containing at least one capital letter in a given T text. Solution # creation of a function which…
Exercise 27 Write a Python algorithm that determines the list of words starting with a capital letter in a given text T. Solution def beginMaj (T): # initialization of the…
Exercise 26 For a given list L of integers, write an algorithm in Python that return the tuple of lists (l_even, l_odd) where l_even designates the list of even integers…
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…
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…
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…