Md-IUT-Cours/algo_avancee/miroir.py

16 lines
406 B
Python
Raw Normal View History

2015-01-28 09:34:38 +01:00
def miroir():
pile = creer_pile()
car = input("Saisir un caractère : ")
while car <= 'z' and car >= 'a' or car <= 'Z' and car >= 'A':
empile(pile, car)
car = input("Saisir un caractère ")
while not pile_vide(pile):
print(sommet(pile), end="")
depile(pile)
print()
def separate_car():
chaine = input("Saisir une chaine : ")
for car in chaine:
print(car)