minerbot/bfc.py

13 lines
235 B
Python
Raw Normal View History

2018-06-26 00:12:53 +00:00
#!/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)