Solution Exercise 68: algorithm that determines the list of perfect squares
Exercise 68 Write a Python algorithm which determines for a given integer, the list of perfect squares between 1 and n. Example if n = 100 the algorithm returns the…
Python Courses & Exercises with solutions !
Exercise 68 Write a Python algorithm which determines for a given integer, the list of perfect squares between 1 and n. Example if n = 100 the algorithm returns the…
Exercise 67 Write without using any predefined function a Python algorithm as a function which takes as parameter a list of integers L and which returns True if the list…
Exercise 66 Write a Python algorithm to extract the list of integers from a list of numbers. Example: if L = [2.5 , 11.54 , 3 , 7.35 , 5…
Exercise 65 Given a list of strings, write a Python algorithm allowing which replace the elements of the list with their lengths. Example: if L = ["Python", "Django", "Numpy", "Sympy"]…
Exercise 63 Write a program in python allowing to extract from a list of strings, the list of strings containing at least two vowels. Example if L = ["Java", "Python",…
Exercise 62 Given a list of integers L, write an algorithm in Python which multiplies the elements of L of even index by 2 and those of odd index by…
Exercise 61 Resume the previous exercise (Exercise60) without using the reverse() method in python. Solution def reverseList (L): # initialization of the inverted list lReverse = [] # iterate over…