Programmation Python/Exercices sur les bases du langage/Palindrome
- Partie 1 - Introduction
- Avant-propos à l'attention des non-programmeurs
- Introduction
- Installation
- Éditeurs
- Programmer en deux minutes
- Partie 2 - Le langage
- Afficher un texte
- Structure d'un programme
- Variables
- Opérateurs
- Structures de contrôle
- Instructions répétitives
- Types
- Fonctions
- Modules
- Exercices
- Regex
- Programmation orientée objet pour les non-programmeurs
- Classes
- Classes et Interfaces graphiques
- Fichiers
- Exceptions
- Bases de données
- L'interface CGI
- Applications web
- Réseau
- Threads
- Partie 3 - Les bibliothèques
- Bibliothèques pour Python
- L'interface graphique
- Utilisation de fenêtres et de graphismes
- Les threads
- XML
- JSON
- Tests
- Analyse statique de programmes
- Fabric
- Le Web
- Wikilivres connexes
- Partie 1 - Introduction
- Avant-propos à l'attention des non-programmeurs
- Introduction
- Installation
- Éditeurs
- Programmer en deux minutes
- Partie 2 - Le langage
- Afficher un texte
- Structure d'un programme
- Variables
- Opérateurs
- Structures de contrôle
- Instructions répétitives
- Types
- Fonctions
- Modules
- Exercices
- Regex
- Programmation orientée objet pour les non-programmeurs
- Classes
- Classes et Interfaces graphiques
- Fichiers
- Exceptions
- Bases de données
- L'interface CGI
- Applications web
- Réseau
- Threads
- Partie 3 - Les bibliothèques
- Bibliothèques pour Python
- L'interface graphique
- Utilisation de fenêtres et de graphismes
- Les threads
- XML
- JSON
- Tests
- Analyse statique de programmes
- Fabric
- Le Web
- Wikilivres connexes
def is_palindorme(mot):
return mot == mot[::-1]
monMot = input("votre mot: ")
if is_palindrome(monMot):
print("est palindrome")
else:
print("n'est pas palindrome et donne: ",monMot[::-1])