Python 3 latest code crumbs
Quickly print your Python variables with this f-string trick
Apr 20, 2022 by erik
There's an easy way to print the contents of variables by using f-strings. Using this trick, Python prints both the variable name and its value. This is useful for debugging purposes!...
Convert strings to numbers by using a list comprehension
Apr 12, 2022 by erik
Convert the numerical strings in the list
numbers into actual numbers (integers) by using a list comprehension. If you need a little guidance, make sure to read my article on list comprehensions first....