PythonMastery's profile picture. Master Python. Make more money. Create a fulfilling career. Learn from the best.

Python Mastery

@PythonMastery

Master Python. Make more money. Create a fulfilling career. Learn from the best.

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

PythonMastery's tweet image. 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 Mastery heeft deze post opnieuw geplaatst

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

FlippingDemBits's tweet image. 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

Python Mastery heeft deze post opnieuw geplaatst

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


Python Mastery heeft deze post opnieuw geplaatst

Python tip: You can encode file content as base64 encoded string using pathlib and base64 👇

testdrivenio's tweet image. Python tip:

You can encode file content as base64 encoded string using pathlib and base64

👇

Python Mastery heeft deze post opnieuw geplaatst

A lot of people still: Should I use Python 2 or 3? Me: THREEEEEEEEEEEEEEEEEEEEEEEEE #Python #programminghumor


Python Mastery heeft deze post opnieuw geplaatst

One line to reverse them all (all of the lists, that is) #pythonprogramming #Python #pythonlearning

FlippingDemBits's tweet image. One line to reverse them all (all of the lists, that is) #pythonprogramming #Python #pythonlearning

Python Mastery heeft deze post opnieuw geplaatst

The way iterating was meant to be played! #Python #pythonprogramming

FlippingDemBits's tweet image. The way iterating was meant to be played! #Python #pythonprogramming

Python Mastery heeft deze post opnieuw geplaatst

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


United States Trends

Loading...

Something went wrong.


Something went wrong.