29 lines
515 B
Python
29 lines
515 B
Python
s = "/code showtime"
|
|
alphabet = "0123456789abcdefghijklmnopqrstuvwxyz .,-!?+*'<>#@$€§%&/()[]0"
|
|
|
|
last_letter = "1"
|
|
|
|
output = []
|
|
|
|
for h in s:
|
|
int_h = int(alphabet.index(h))
|
|
int_ll = int(alphabet.index(last_letter))
|
|
diff = int_h - int_ll
|
|
sym = ""
|
|
if diff > 0:
|
|
sym = ">"
|
|
if diff < 0:
|
|
sym = "<"
|
|
if diff == 0:
|
|
pass
|
|
for i in range(abs(diff)):
|
|
print(sym)
|
|
if diff != 0:
|
|
print("!")
|
|
else:
|
|
pass
|
|
last_letter = h
|
|
pass
|
|
|
|
print("p")
|