Skip to content

Instantly share code, notes, and snippets.

@ewmson
Created March 31, 2017 17:29
Show Gist options
  • Save ewmson/52ad7fd8ccb49fa95fe1d73a93bd5cd7 to your computer and use it in GitHub Desktop.
Save ewmson/52ad7fd8ccb49fa95fe1d73a93bd5cd7 to your computer and use it in GitHub Desktop.
x = raw_input()
result = eval(x)
res = str(result)
print('++>')
print('+++>')
print('[<+>-]<')
z = 2
for c in res:
print(((255 + (ord(c) - z))*'+') + '.')
z = ord(c) - 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment