Solution Exercise 58: Python program to find the list of files and directories
Exercise 58 a) Write a program that lists all the folders in the 'C: / Windows' directoryb) write another program which lists all the files in the 'C: / Windows' …
Python Courses & Exercises with solutions !
Exercise 58 a) Write a program that lists all the folders in the 'C: / Windows' directoryb) write another program which lists all the files in the 'C: / Windows' …
Exercise 57 Given a file called myfile.txt which contains the following text:"Python is object oriented programming language".Write a program in Python that transforms the content of the file by writing…
Exercise 56 Given a file called myfile.txt which contains the following lines: line 1line 2line 3 write a Python program that transforms the content into the form: line 3this line…
Exercice 54 1) Write a Python program that create a txt file called myfile.txt and write on it the texte: "Python is object oriented programming language".2) Write an ohter python…
Exercice 54: Write a program in Python which allows you to insert at the 3rd position of an existing file called myFile.txt, the line "This line was inserted via Python…
Exercise 53 Create manually two files in the same directory: python_code.py myfile.txt 1) - Create a Python program that writes the following three lines to the myfile.txt file:First linesecond linethird…
Exercise 52 Write a python program that allowing you to create a directory in the desktop called myDir Write a Python program allowing you to create a file in the…