Hey everyone! This is a new page for checking out different Python code snippets, or as called code chunks.
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 趋势
- 1. No Kings 716K posts
- 2. #AnteX N/A
- 3. Dork Cult Protest Day 29.9K posts
- 4. Vandy 4,850 posts
- 5. Semaj Morgan N/A
- 6. Arsenal 105K posts
- 7. Duke 70.3K posts
- 8. Shula 1,050 posts
- 9. Araujo 574K posts
- 10. Fulham 33.3K posts
- 11. Nuss 2,385 posts
- 12. McLaren 48.4K posts
- 13. Saka 31.2K posts
- 14. #GoBlue 1,581 posts
- 15. Pavia 1,590 posts
- 16. Vanderbilt 4,366 posts
- 17. Lance Stroll 2,070 posts
- 18. Andrew Marsh N/A
- 19. #USGP 74K posts
- 20. #Sooners N/A
Something went wrong.
Something went wrong.