Skip to content

Instantly share code, notes, and snippets.

@jul
Created July 13, 2012 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jul/3104751 to your computer and use it in GitHub Desktop.
Save jul/3104751 to your computer and use it in GitHub Desktop.
i++ $A++ the funny way
q = 0 or """ #=;$A=41;sub A { ~-$A+2}; A() && q' """
A=lambda A: -~A #';
print A(41) # python + perl = <3
@mouuff
Copy link

mouuff commented Jul 23, 2012

[ironique]
python + perl = code très lisible
[/ironique]

@jul
Copy link
Author

jul commented Jul 23, 2012

[hint]
Je crois qu'il y a plus simple autant en Perl qu'en python pour faire a+=1
[/hint]

@mouuff
Copy link

mouuff commented Jul 24, 2012

super tu gagnes un caractère...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment