Skip to main content
knocked off a semicolon
Source Link

Python 2, 43 4242 41 bytes

x=raw_input();print x while x>'0':print x;x 

Got a syntax error at the while loop if I tried to run it as a one-liner. Not really sure why.

EDIT: Knocked off a semicolon.

Knocked off ANOTHER semicolon that I put on there because I've been looking at C too much lately.

Python 2, 43 42 bytes

x=raw_input();print x while x>'0':print x; 

Got a syntax error at the while loop if I tried to run it as a one-liner. Not really sure why.

EDIT: Knocked off a semicolon.

Python 2, 43 42 41 bytes

x=raw_input();print x while x>'0':print x 

Got a syntax error at the while loop if I tried to run it as a one-liner. Not really sure why.

EDIT: Knocked off a semicolon.

Knocked off ANOTHER semicolon that I put on there because I've been looking at C too much lately.

a=input() while a:print 1 print 0
Source Link

Python 2, 4343 42 bytes

x=raw_input();print x;x while x>'0':print x; 

Got a syntax error at the while loop if I tried to run it as a one-liner. Not really sure why.

EDIT: Knocked off a semicolon.

Python 2, 43 bytes

x=raw_input();print x; while x>'0':print x; 

Got a syntax error at the while loop if I tried to run it as a one-liner. Not really sure why.

Python 2, 43 42 bytes

x=raw_input();print x while x>'0':print x; 

Got a syntax error at the while loop if I tried to run it as a one-liner. Not really sure why.

EDIT: Knocked off a semicolon.

Source Link

Python 2, 43 bytes

x=raw_input();print x; while x>'0':print x; 

Got a syntax error at the while loop if I tried to run it as a one-liner. Not really sure why.