Rodrigo ๐๐
@mathsppblog
Take your Python ๐ skills to the next level ๐! Daily drop of Python knowledge http://mathspp.com/drops ๐๐ง
You might like
We did it! Largest computer programming lesson in the world!
Python has a very well-known naming convention: Names that start with a leading underscore are โprivateโ. This means the outside world has no business using them. E.g., attributes and methods starting with `_` in a class mean they're for that class only.
The methods `strftime` and `strptime` can be used to convert dates/times into strings and vice-versa. Here's a mnemonic to help you: ๐ `strptime` has a โPโ for โParse date/timeโ, so string -> date ๐ `strftime` has an โFโ for โFormat date/timeโ, so date -> string
A generator, duck typing, and a branchless conditional walk into a bar... You can read the rest of this Python joke here ๐ mathspp.com/blog/a-generatโฆ
The string method `str.split` has a parameter `maxsplit` that determines the maximum number of splits that will be performed. The returned list with the splits (and possibly the remainder of the string) has a maximum length of `maxsplit + 1`.
Yesterday's training culminated with creating a couple of projects (with uv). We then uploaded them to (Test) PyPI and we got people to install each other's apps and run them on their own computers. It was clearly a moment of *fun* for folks involved. ๐คฉ
I panicked when I saw this. I tend to associate Armin to Python. But this is JS. I'm sorry you have to use JS, Armin. โค๏ธโ๐ฉน Here's the Python behaviour:
Days 2 and 3 were a success, if I might say so myself. The grounded, fundamental approach to OOP resonated well with the participants. Even those who already knew OOP said they learned a lot by starting with the fundamentals! What a surprise! (Not...)
Live-coding during trainings + automatically syncing to git so everyone has access to what I'm typing = Very informative git history.
Yesterday went well. Today I'm teaching OOP from the ground up. But like, REALLY from the ground up. Not just โyou write class Something then __init__ and `self` is the first argument because reasonsโ. Might turn this into a chapter for my book โPydon'tsโ, actually...
There's nothing quite like the excitement of being about to start a week-long Python training. Being this excited about my job feels illegal ๐คฃ
United States Trends
- 1. Max B 3,898 posts
- 2. Good Sunday 64.8K posts
- 3. Doran 80K posts
- 4. #Worlds2025 122K posts
- 5. Faker 93.7K posts
- 6. #T1WIN 69.2K posts
- 7. #sundayvibes 4,914 posts
- 8. #AskBetr N/A
- 9. Full PPR N/A
- 10. SILVER SCRAPES 4,306 posts
- 11. O God 8,043 posts
- 12. Sunday Funday 2,874 posts
- 13. #sundaymotivation 1,753 posts
- 14. Blessed Sunday 17.5K posts
- 15. The Wave 62.6K posts
- 16. Guma 17.7K posts
- 17. Alec Pierce N/A
- 18. Parker Washington N/A
- 19. Oner 30.1K posts
- 20. Keria 39.3K posts
You might like
-
Mike Driscoll
@driscollis -
Santiago
@svpino -
Data Science Dojo
@DataScienceDojo -
Real Python
@realpython -
Patrick Loeber
@patloeber -
TestDriven.io
@testdrivenio -
Matt Harrison
@__mharrison__ -
Mouse Vs Python
@mousevspython -
Akshay ๐
@akshay_pachaar -
Afiz โก๏ธ
@itsafiz -
Python Developer
@Python_Dv -
Towards Data Science
@TDataScience -
PyCoderโs Weekly
@pycoders -
Python Hub
@PythonHub -
Python Programming
@PythonPr
Something went wrong.
Something went wrong.