Solution Exercice 81: algorithme python qui renomme un fichier texte

Exercice 81

  1. Ecrire un algorithme en Python qui crée un fichier sur le bureau de l'utilisateur (Windows) nommé monFichier.txt 
  2. En utilisant la méthode os.rename(), créer un algorithme python qui renomme le fichier monFichier.txt en myFile.txt.

Solution

Question 1





Question 2

 

Younes Derfoufi
CRMEF OUJDA

1 thought on “Solution Exercice 81: algorithme python qui renomme un fichier texte

Leave a Reply

Your email address will not be published. Required fields are marked *