I recently committed an API key to a repository and even worse, I pushed to…
Read MoreCategory: quick-tip
Do I need to indent my Python code? What about JavaScript?
JavaScript python quick-tipYes! Indentation, or leading white space at the beginning of a line is required in…
Read MoreDifference among list, tuple and set in Python and when to use each one
python quick-tipPython has three similar data structures that can hold an unordered collection of elements: list,…
Read MoreAdd a filename in the command line when running a Python script
command line how-to python quick-tipOR: Run a Python script with arguments You can add arguments to the command line…
Read MoreProfiling: check how long it takes to run a Python script
command line how-to python quick-tipFrom Python’s official documentation: “A profile is a set of statistics that describes how often and for…
Read MoreMap a string in Python with enumerate
python quick-tipProblem: create a map of the letters and indices in a string. My first approach was…
Read More