Solution Exercise 65: algorithm python whiche determines the number of lines of given a file
Exercise 65 Write an algorithm in python in the form of a function which takes as argument the path of an existing file and returns the number of lines of…
Python Courses & Exercises with solutions !
Exercise 65 Write an algorithm in python in the form of a function which takes as argument the path of an existing file and returns the number of lines of…
Exercise 753 Write a python algorithm as a function which takes as argument a positive integer n and returns the list of all the tuples (u, v) of integers such…
Exercise 752 Write a program in Python that searches for the greatest divisor strictly less than a given positive integer n. Example for n = 18 the greatest divisor of…
Exercise 751 Write a program in Python that finds the smallest divisor strictly greater than 1 of a given positive integer n. Example for n = 15 the smallest divisor…
Exercise 62 a)Write a python program that create a text file called myFile.txt and write on it the following lines: - this is the line 1 - thtis is the…
Exercise 152 By using the matplotlib module, write a python algorithm which draw the curve of functions f(x) = x2 and g(x) = 2x +1 on the interval [-3 ,…
Exercise 151 By using the matplotlib module, write a python algorithm which draw the curve of function f(x) = x2 on the interval [-3 , +3] Solution import matplotlib.pyplot as…