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. Stanford 10.3K posts
- 2. #AEWWrestleDream 67.3K posts
- 3. Mike Norvell 1,467 posts
- 4. Florida State 9,766 posts
- 5. Sabrina 63.6K posts
- 6. #byucpl N/A
- 7. Darby 11K posts
- 8. Utah 32.4K posts
- 9. Hugh Freeze 3,014 posts
- 10. Lincoln Riley 2,823 posts
- 11. Mizzou 6,208 posts
- 12. Bama 16.4K posts
- 13. Sperry N/A
- 14. Kentucky 25.2K posts
- 15. Castellanos 3,826 posts
- 16. Stoops 5,000 posts
- 17. Arch 26.1K posts
- 18. Nobody's Son 2,714 posts
- 19. Sting 14.7K posts
- 20. Sark 4,604 posts
Something went wrong.
Something went wrong.