Python source code: https://www.my-courses.net/2020/10/solution-exercise-50-python-function.html
All python string exercises: https://www.my-courses.net/2019/08/python-practice-exercises-with-solution.html
Ecrire un programme python sous forme de fonction qui prend une chaîne s comme paramètre et renvoie la liste des caractères numériques contenus dans la chaîne s. Exemple si s = 'Python 3.0, sorti en 2008 et complètement révisé en 2020' la fonction renvoie la liste: [3, 0, 2, 0, 0, 8, 2, 0, 2, 0].
Pour tester si un caractère d'une chaine python est numérique, on utilise la méthode isdigit ou la methode isnumric.
Cet exercice a été créé dans Python 3.7 Windows 7, Python 3.7 Windows 8 et Python 3.7 Windows 10.
Pour une visualisation professionnelle, utilisez le navigateur Google Chrome.
Write a python program as a function that takes a string s as a parameter and returns the list of numeric characters contained in the string s. Example if s = 'Python 3.0, released in 2008 and completely revised in 2020' the function returns the list: [3, 0, 2, 0, 0, 8, 2, 0, 2, 0].
To test if a character in a python string is numeric, we use the isdigit method or the isnumric method.
This exercise was created in Python 3.7 Windows 7, Python 3.7 Windows 8, and Python 3.7 Windows 10.
For professional 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
Python GUI Tkinter Exercises: https://www.my-courses.net/p/python-gui-tkinter-exercises-