Solution Exercise 16 iterate through the characters of a string in Python

Exercise 16 Write a python program to display all characters of a string variable. Example for s = "Python", the program displays the characters: P y t h o n Solution (First method)

Solution (second method)

  Younes Derfoufi CRMEF OUJDA

Exercises With Solutions On Python lists

Exercise 1 || Solution Write a python algorithm to display all elements of a given list by two different ways. Exercise 2 || Solution Write a Python algorithm to swap the first element with the last element of a given list. Example: if L = ["Python", "Java", "C++", "Javascript"], the algorithm returns the list: ["Javascript",…