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…
Python Courses & Exercises with solutions !
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",…
my_globvar = 0def change_globvar(): global my_globvar # Needed to modify m_globvar my_globvar = 1 # we can change value of global variable change_globvar() print(my_globvar) Younes Derfoufimy-courses.net
x = 10print(type(x))// type intx = float(x) print(type(x))// flot type Younes Derfoufimy-courses.net
x = 5print (type (x)) # x is of type intx = "Hello World"print (type (x)) # x is now of type string Younes Derfoufimy-courses.net
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…