Solution Exercise 73: Python algorithme which determines the List of position of a pattern in a given Texte
Exercise 73 Write a function which takes as parameter a variable of type string s and another string T, and returns the list of positions of a pattern s in…
Solution Exercise 46: Python Class Book
Exercise 46 1. Define a Book class with the following attributes: Title, Author (Full name), Price.2. Define a constructor used to initialize the attributes of the method with values entered…
Solution Exercise 45: Computation class
Exercise 45. Computation class: 1 - Create a Coputation class with a default constructor (without parameters) allowing to perform various calculations on integers numbers.2 - Create a method called Factorial()…
Solution Exercise 44: class circle en python
Exercise 44. Circle class 1 - Define a Circle class allowing to create a circleC (O, r) with center O(a, b) and radius r using the constructor: def __init__(self,a,b,r): self.a…
Solution Exercise 72: python algorithm which determines the list of positions of an element in a list
Exercise 72 Write a function which takes an element x and a list L as a parameter, and returns the list of positions of x in L. The function must…
Solution Exercise 71: python algorithm which translate a given list
Exercise 71 Write a Python algorithm that transforms a list of integers L = [n1, n2, n3, ..., np] by adding 1 to the first element, 2 to the second…
Solution Exercise 70: Python algorithm that tests whether a list is symmetric or not
Exercise 70 Write a Python algorithm to test if a given list is symmetric using the reverse() method. Example: for L1 = [2, 5, 11, 5, 2] the algorithm returns…