Code source Python pour cet exercice: https://www.my-courses.net/2020/10/solution-exercise-74-python-algorithm.html
Écrire un programme Python qui remplace les caractères qui ont des valeurs d'index impaires d'une chaîne donnée par '#'.
Exemple si s = "Python", l'algorithme renvoie la chaîne: "P # t # o #".
Ce script a été produit 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 that replace the characters which have odd index values of a given string by '#'.
Example if s = "Python" , the algorithm returns the string: "P#t#o#".
This script was produced under Python 3.7 Windows 7, Python 3.7 Windows 8 and Python 3.7 Windows 10.
For professional quality viewing, use the google chrome browser.
See all python string exercises: https://www.my-courses.net/2019/08/python-practice-exercises-with-solution.html
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-