Carleii Dev Posted on Apr 26, 2022 Powerful one line codes in python #python #devops #c4rl3 Top comments (3) Subscribe Personal Trusted User Create template Templates let you quickly answer FAQs or store snippets for re-use. Submit Preview Dismiss Collapse Expand Jon Randy 🎖️ Jon Randy 🎖️ Jon Randy 🎖️ Follow 🤖 Artisanal developer - coding with varying degrees of success since 1983 Location Bangkok 🇹🇭 Joined Jun 1, 2018 • Apr 27 '22 • Edited on Apr 27 • Edited Dropdown menu Copy link Hide even_numbers = [x for x in range(11) if ~x&1] even_numbers = [x for x in range(11) if not x&1] Enter fullscreen mode Exit fullscreen mode One of these are probably quicker if you care about micro-optimising for speed Collapse Expand Carleii Dev Carleii Dev Carleii Dev Follow Take a look to my GitHub.. maybe you can find something interesting 😇 Email devcarle@gmail.com Location Cameroon Education ??? Work Senior dev Joined Mar 25, 2022 • Apr 27 '22 Dropdown menu Copy link Hide Nice one thanks Collapse Expand Juan Ignacio Borda Juan Ignacio Borda Juan Ignacio Borda Follow Joined Feb 19, 2018 • Jun 22 '22 Dropdown menu Copy link Hide Do you think the compiler (JIT) will tokenize'em differently? Code of Conduct • Report abuse Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink. Hide child comments as well Confirm For further actions, you may consider blocking this person and/or reporting abuse
Top comments (3)
One of these are probably quicker if you care about micro-optimising for speed
Nice one thanks
Do you think the compiler (JIT) will tokenize'em differently?