Solution Exercise 69: python algorithm which determines the list of tuples of integers satisfying certain condition
Exercise 69 Write a Python algorithm which determines for a given integer n the list of tuples of integers (p, q) satisfying: p2 + q2 = n Solution #coding: utf-8def…
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…
Converting numerical types in python
s = input ("Type a number:") int_s = int (s) #Conversion of string to intprint (type(int_s)) float_s = float (s) #Conversion of string to floatprint (type(float_s)) complex_s = complex (s)…
Solution Exercise 67: python algorithm that tests whether a list is arranged in ascending order
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…
Solution Exercise 66: extract the list of integers from a list of numbers
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…
Solution Exercise 65: Python algorithm which replaces the words in a list with their lengths.
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"]…
Solution Exercise 63: python algorithm which determines the list of words containing at least two vowels
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",…