We will see in this Python exrcice, how to create a Python program that allows you to find the longest word in a text file. we start by creating a text file and opening it in python via the open command in read mode. We then retrieve the contents of the file via the read python method. We then transform the contents of the file into a list using the split method. And finally by looping through the list L and testing the lengths of the words, we get the longest word in the file.
For a good viewing of the video, use the google chrome browser. The Python versions tested for this tutorial are Python 3.7 Windows 7, Python 3.7 Windows 8, Python 3.7 Windows 10.
Nous allons voir dans ce tutoriel, comment installer Wordpress sur un serveur local comme wamp server, Uwamp server, easyphp...Nous commençons par démarrer le serveur et créer une base de donnée sur phpmyadmin, nous téléchargeons ensuite le système Wordpress, nous faisons l'extraction de l'archive et déposons le dossier wordpress sur le répertoire www du serveur web local. Nous accéons à la page d'installation via l'adresse url localhost et nous poursuivons ensuite les étapes automatiques d'installation.
Pour un bon visionnage de la vidéo, utiliser le navigateur google chrome. Les version de Python testées pour ce tutoriel, sont Python 3.7 Windows 7, Python 3.7 Windows 8, Python 3.7 Windows 10.