Skip to content

Instantly share code, notes, and snippets.

@jul
Last active April 2, 2025 07:21
Show Gist options
  • Select an option

  • Save jul/3104751 to your computer and use it in GitHub Desktop.

Select an option

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
@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