Files
corso-python/lab34.py
T
2026-04-09 16:01:24 +02:00

15 lines
254 B
Python

str1 = input("Inserire la prima stringa: ")
str2 = input("Inserire la seconda stringa: ")
pos = 0
for ch in str1:
lettera = str2.find(ch, pos)
if lettera == -1:
print("No")
break
pos = lettera + 1
else:
print("Si")