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…
Python Courses & Exercises with solutions !
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…
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…
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…
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…
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()…
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…
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…