Be careful when copying Lists! If you don't know whats happening in the code snippet, read this: How to copy a List in Python without side effects python-engineer.com/posts/ho…
1
4
1,521
How to check if a List is empty in Python: - if not my_list - if len(my_list == 0) Which option do you prefer? The official PEP 8 Style Guide recommends option 1. Read more here: python-engineer.com/posts/ch…
1
1
24
3,020
Python Tip of the day: How to sort a dictionary by values in Python Explanation: python-engineer.com/posts/so…
1
6
44
6,492
Python Tip: How to randomly select an item from a list. 3 options:
1
18
86
Here are 10 Python One Liner. For more details you can read the article. 🔗 python-engineer.com/posts/10…
2
15
93
Python Tip: Python has an interactive mode that you can use with python -i It runs the script and then starts the interactive shell with access to all variables/functions etc. Very cool for debugging or tinkering around with your script.🐍
3
10
56
Python Tip: print() has optional arguments like sep, end, file:
2
17
125
Did you know that Pandas has a built-in US holiday calendar? Today is a holiday, so Happy Thanksgiving!
2
20
The first 100 followers🥳🙏 Here's a simple but great Python Tip for the start: Use the str.join() method to combine a list of strings into one string.
1
5
36