Python tips #1
.
If you ever wanted to modify a dictionary to do something if a key doesn't exist, the __missing__ magic method of a class has you covered. This will create an array if you access a missing key in the dictionary.
#Python#Pythontips
Python trick #1:
.
Python for loops have a little known ability. The else statement will be executed if no breakpoints are hit in the for loop. This is useful to remove the need for a variable
.
#Python#LittleKnownPython#PythonTricks
After almost 10 years being a developer, I still struggle with imposter syndrome. I don't think it ever quite goes away, but the good news is that it indicates that you still have lots to learn from your teammates!
#ProgrammingLife#programming#developerlife
Variable = a jar
Value = a thing you can put in the jar
Type = the type of thing you put in the jar
Program = a recipe using stuff in all of your jars
Put some beans in the jar so you can use them later in your chili recipe 😆
#programming#Coding