
code_chunk
@code_chunk
Edible code chunks in Python(primarily) 🐍
Vous pourriez aimer
Hey everyone! This is a new page for checking out different Python code snippets, or as called code chunks.
"Remember that there is no code faster than no code."
How to delete a non-empty folder? - Using `os.rmdir` on a non-empty folder gives error. - We can delete the contents of the folder and then delete the folder itself. Here is a `recursive_delete` function for the same.

This is a goldmine for python related talks. If anyone is interested to watch Python Conference videos, this is the best site to search for it! @PyvideoOrg thank you! pyvideo.org
command + A = whole field single-click + drag = characters double-click + drag = whole words triple-click + drag = whole paragraph or line from Brandon Rhodes talk "Activation Energy" youtube.com/watch?v=pybtvF…
youtube.com
YouTube
Activation Energy, by Brandon Rhodes
To understand the basics of Python, go through this course dabeaz-course.github.io/practical-pyth… by David Beazley. Simple and beautiful.
Solution for a problem on codeforces, codeforces.com/problemset/pro…. In Python, we have simple and beautiful functions `split` and `join` to work with the strings. What are some equivalent functions in C++ ? #python #cpp #codingproblem #code

Implementing the `wc` command present in *nix[ only for counting lines, characters and words ] awk vs. Python code. #awk #Python #programminglanguages
![code_chunk's tweet image. Implementing the `wc` command present in *nix[ only for counting lines, characters and words ]
awk vs. Python code.
#awk #Python #programminglanguages](https://pbs.twimg.com/media/Epv0kjqU0AEBj_W.png)
Did you know python has a groupby function? It provides an iterator to the group formed based on key provided. If no key is specified the identity function is used (i.e., the element itself) Go listen to the @adspthepodcast Episode 4!

Favourite Python talks by @nedbat 1. Facts and myths about Python names and values youtube.com/watch?v=_AEJHK… 2. Loop like a native youtube.com/watch?v=EnSu9h… 3. Pragmatic unicode, or How do I stop the pain? youtube.com/watch?v=sgHbC6… Check them out!
youtube.com
YouTube
Pragmatic Unicode, or, How do I stop the pain?
United States Tendances
- 1. Lakers 90.2K posts
- 2. Luka 69.4K posts
- 3. Ayton 14.9K posts
- 4. Marcus Smart 8,443 posts
- 5. Warriors 95.4K posts
- 6. Steph 32.4K posts
- 7. Sengun 25.3K posts
- 8. #DWTS 48.6K posts
- 9. Shai 33.7K posts
- 10. #DubNation 13.1K posts
- 11. Rockets 58.9K posts
- 12. Draymond 8,393 posts
- 13. Reaves 9,132 posts
- 14. Double OT 6,632 posts
- 15. Jimmy Butler 9,201 posts
- 16. #LakeShow 6,569 posts
- 17. #TusksUp 1,089 posts
- 18. LeBron 36.7K posts
- 19. Vando 3,000 posts
- 20. Kuminga 10.2K posts
Something went wrong.
Something went wrong.