Professional Documents
Culture Documents
Sortowanie ASCII
Sortowanie ASCII
while 1:
t = input("Podaj tekst: ")
d = len(t)
for i in range(0,d):
if (ord(t[i]) <97 or ord(t[i]) >122):
print("Sproboj ponownie")
break
else:
break
return t
t=tekst()
t2=""
l1=[]
y=1
while y>0:
y=0
x=0
while x<len(t)-1:
if l1[x]>l1[x+1]:
p=l1[x]
l1[x]=l1[x+1]
l1[x+1]=p
y=y+1
x=x+1