Solution Exercise 94*: python algorithm to find the list of repeated words
Exercise 94* Write a Python program as function that takes as parameter a string s and which returns the list repeated word within the string s. Example: if s =…
Python String Methods
capitalize() Converts the first character to upper case casefold() Converts string into lower case center() Returns a centered string count() Returns the number of times a…
Solution Exercise 22: python algorithm which determines the list of duplicate elements
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 12: maximum and minimum of a Python list
Exercise 12 Using the sort () method, write an algorithm in python as a function which takes as parameter a list L of numbers and which returns the couple (min,…
Solution Exercise 11: Multiply the elements of a Python list by a given integer
Exercise 11 Write an algorithm in python as a function which takes as parameter a tuple (L, n) formed by a list L of numbers and an integer n and…
Solution Exercise 10: python algorithm that returns the position of an element in a given list
Exercise 10 Write an algorithm in python as a function which takes as a parameter a tuple (L, x) formed by a list L and an element x and which…
Solution Exercise 9: python algorithm which tests if an element is present in a list or not
Exercise9 Write an algorithm in python as a function which takes as parameter a tuple (L, a) formed by a list L and an element a and which returns True…