Solution Exercise 20: swapping the first character and the last character of a string in python

Exercise20

Write a Python program, to swap the first and the last character of a given string.

Solution

 

Younes Derfoufi
CRMEF OUJDA

loader-image
Le prix initial était : € 11,00.Le prix actuel est : € 10,00.
Le prix initial était : € 6,00.Le prix actuel est : € 5,00.



2 thoughts on “Solution Exercise 20: swapping the first character and the last character of a string in python”

Leave a Reply

Your email address will not be published. Required fields are marked *