Solution Exercice FR : https://www.tresfacile.net/solution-exercice-48-tester-si-le-premier-caractere-est-identique-au-dernier-dans-une-chaine-python/
Solution Exercice EN: https://www.my-courses.net/2020/10/solution-exercise-65-python-algorithm.html
Ecrire un programme Python sous forme de fonction qui prends comme paramètre une chaîne s et qui renvoie True si le premier caractère est identique au dernier caractère de la chaîne, et renvoie False sinon.
Exemple si s = "render", la fonction doit renvoyer True.
Si s = "Python", la fonction renvoie False.
Cet exercice a été crée sous Python 3.7 Windows 7, Python 3.7 Windows 8 et Python 3.7 Windows 10.
Pour une visualisation de qualité professionnelle, utilisez le navigateur Google Chrome.
Write a Python program as a function that takes a string s as a parameter and returns True if the first character is the same as the last character in the string, and returns False otherwise.
Example if s = "render", the function must return True.
If s = "Python", the function returns False.
This exercise was created in Python 3.7 Windows 7, Python 3.7 Windows 8 and Python 3.7 Windows 10.
For professional looking viewing, use the Google Chrome browser.
Exercices Python: les bases: https://www.tresfacile.net/tp-python-exercices-corriges-dalgorithmique-python-les-bases/
Tous les TP Python avec solutions: https://www.tresfacile.net/tp-python-avec-solutions/
Python Exercises With Solutions : https://www.my-courses.net/p/python-exercises-with-solutions.html
Basic Python Exercises-Solutions:
- Exercises on Strings and Lists: https://www.my-courses.net/2019/08/python-practice-exercises-with-solution.html
- OOP Exercices with solutions: https://www.my-courses.net/2020/02/exercises-with-solutions-on-oop-object.html
- Exercises on Python File I/O: https://www.my-courses.net/2020/03/exercise-on-python-files-io.html
- Python Dictionary Exercises:https://www.my-courses.net/p/python-dictionary-exercises.html
- Python Sets Exercises: https://www.my-courses.net/p/python-set-exercises-with-solutions.html
Python Mathematics Exercises
High School Grade 10
- Python Arithmetic Exercises: https://www.my-courses.net/p/python-arithmetic-exercises-with_13.html
- Equations & System Of Equations: https://www.my-courses.net/p/solving-equations-and-systems-of.html
- Polynomials and Functions: https://www.my-courses.net/p/solving-equations-and-systems-of.html
- High School Grade 11
- Python Arithmetic Exercises: https://www.my-courses.net/p/python-arithmetic-exercises-with_30.html
- Numpy, Matplolib, Sympy , Scipy - Exercises:https://www.my-courses.net/p/python-numpy-exercise-high-school-grade.html
- High School Grade 12
- Python Arithmetic Exercises: https://www.my-courses.net/p/python-arithmetic-exercises-with.html