Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Smallest Brainfuck interpreter written in Python [167 bytes]
zax2002
May 8th, 2020
322
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
z
=
a
=
x
=
0
c
,
m
=
input
(
)
,
[
0
]
*
999
while
(
z
<
len
(
c
)
)
:
exec
(
"a+=1|a-=1|m[a]+=1|m[a]-=1|print(chr(m[a]))|m[a]=ord(input())|x=z|if m[a]:z=x"
.
split
(
"|"
)
[
"><+-.,[]"
.
find
(
c
[
z
]
)
]
)
;
z+
=
1
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
C++ | 41 min ago | 0.40 KB
Elite:Dangerous: Titan-Bomber Script
Python | 47 min ago | 5.78 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 1 hour ago | 0.39 KB
Kick Up Simulator Codes
JSON | 2 hours ago | 0.11 KB
Untitled
FreeBasic | 3 hours ago | 2.56 KB
idk
Lua | 4 hours ago | 129.99 KB
2024-04-23_stats.json
JSON | 4 hours ago | 4.50 KB
2024-04-23_stats.json
JSON | 4 hours ago | 4.48 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!