13 lines
235 B
Python
13 lines
235 B
Python
|
#!/usr/bin/python
|
||
|
#programlines = sys.stdin.readlines()
|
||
|
|
||
|
symbols = ["<",">","+","-","[","]",",","."]
|
||
|
def clean(i):
|
||
|
cleanedChars = []
|
||
|
|
||
|
for char in i:
|
||
|
if char in symbols:
|
||
|
cleanedChars.append(char);
|
||
|
|
||
|
return "".join(cleanedChars)
|