Skip to main content
added 1 character in body
Source Link

Python 2.7.6, 38 3233 bytes

Thanks to Dennis for shaving off a few bytes!

x=1
exec'x^=x*2'*inputexec'x^=x*2;'*input()
print x

Python 2.7.6, 38 32 bytes

Thanks to Dennis for shaving off a few bytes!

x=1
exec'x^=x*2'*input()
print x

Python 2.7.6, 38 33 bytes

Thanks to Dennis for shaving off a few bytes!

x=1
exec'x^=x*2;'*input()
print x
added 63 characters in body
Source Link

Python 2.7.6, 3838 32 bytes

Thanks to Dennis for shaving off a few bytes!

x=1
for i in[0]*inputexec'x^=x*2'*input():x^=x*2
print x

Python 2.7.6, 38 bytes

x=1
for i in[0]*input():x^=x*2
print x

Python 2.7.6, 38 32 bytes

Thanks to Dennis for shaving off a few bytes!

x=1
exec'x^=x*2'*input()
print x
Source Link

Python 2.7.6, 38 bytes

x=1
for i in[0]*input():x^=x*2
print x