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

loader-image
Le prix initial était : € 11,00.Le prix actuel est : € 10,00.
Le prix initial était : € 6,00.Le prix actuel est : € 5,00.



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 *