Skip to main content
Commonmark migration
Source Link

#Python 3, 45 bytes

Python 3, 45 bytes

c='print(end="c=%r;exec(c"%c+c[8*4])';exec(c)

Switching to Python 3 so that the trailing newline can be easily removed.

I started out with a stupid structure that had 2 variables instead of 1, but switching to 1 variable only made it 4 bytes shorter.

-(4 + 3) bytes by Dennis.

#Python 3, 45 bytes

c='print(end="c=%r;exec(c"%c+c[8*4])';exec(c)

Switching to Python 3 so that the trailing newline can be easily removed.

I started out with a stupid structure that had 2 variables instead of 1, but switching to 1 variable only made it 4 bytes shorter.

-(4 + 3) bytes by Dennis.

Python 3, 45 bytes

c='print(end="c=%r;exec(c"%c+c[8*4])';exec(c)

Switching to Python 3 so that the trailing newline can be easily removed.

I started out with a stupid structure that had 2 variables instead of 1, but switching to 1 variable only made it 4 bytes shorter.

-(4 + 3) bytes by Dennis.

edited body
Source Link
feersum
  • 31.5k
  • 9
  • 65
  • 125

#Python 3, 4845 bytes

c='print(end=len(c)%5*"c=%r;execend="c=%r;exec(c)"%cc"%c+c[8*4])';exec(c)

Switching to Python 3 so that the trailing newline can be easily removed.

I started out with a stupid structure that had 2 variables instead of 1, but switching to 1 variable only made it 4 bytes shorter.

-(4 + 3) bytes by Dennis.

#Python 3, 48 bytes

c='print(end=len(c)%5*"c=%r;exec(c)"%c)';exec(c)

Switching to Python 3 so that the trailing newline can be easily removed.

I started out with a stupid structure that had 2 variables instead of 1, but switching to 1 variable only made it 4 bytes shorter.

-4 bytes by Dennis.

#Python 3, 45 bytes

c='print(end="c=%r;exec(c"%c+c[8*4])';exec(c)

Switching to Python 3 so that the trailing newline can be easily removed.

I started out with a stupid structure that had 2 variables instead of 1, but switching to 1 variable only made it 4 bytes shorter.

-(4 + 3) bytes by Dennis.

added 19 characters in body
Source Link
feersum
  • 31.5k
  • 9
  • 65
  • 125

#Python 3, 5248 bytes

c='print(end="c=%r;execend=len(c)"%c);len%5*"c=%r;exec(c)!=40<x';exec"%c)';exec(c)

Switching to Python 3 so that the trailing newline can be easily removed.

I started out with a stupid structure that had 2 variables instead of 1, but switching to 1 variable only made it 4 bytes shorter.

-4 bytes by Dennis.

#Python 3, 52 bytes

c='print(end="c=%r;exec(c)"%c);len(c)!=40<x';exec(c)

Switching to Python 3 so that the trailing newline can be easily removed.

I started out with a stupid structure that had 2 variables instead of 1, but switching to 1 variable only made it 4 bytes shorter.

#Python 3, 48 bytes

c='print(end=len(c)%5*"c=%r;exec(c)"%c)';exec(c)

Switching to Python 3 so that the trailing newline can be easily removed.

I started out with a stupid structure that had 2 variables instead of 1, but switching to 1 variable only made it 4 bytes shorter.

-4 bytes by Dennis.

added 130 characters in body
Source Link
feersum
  • 31.5k
  • 9
  • 65
  • 125
Loading
deleted 1 character in body
Source Link
feersum
  • 31.5k
  • 9
  • 65
  • 125
Loading
deleted 20 characters in body
Source Link
feersum
  • 31.5k
  • 9
  • 65
  • 125
Loading
Rollback to Revision 4
Source Link
feersum
  • 31.5k
  • 9
  • 65
  • 125
Loading
deleted 23 characters in body
Source Link
feersum
  • 31.5k
  • 9
  • 65
  • 125
Loading
added 75 characters in body
Source Link
feersum
  • 31.5k
  • 9
  • 65
  • 125
Loading
Post Undeleted by feersum
deleted 425 characters in body
Source Link
feersum
  • 31.5k
  • 9
  • 65
  • 125
Loading
Post Deleted by feersum
added 6 characters in body
Source Link
feersum
  • 31.5k
  • 9
  • 65
  • 125
Loading
Source Link
feersum
  • 31.5k
  • 9
  • 65
  • 125
Loading