Here you'll find:
• Python
• Narrative Technical Writing
• Track & Field Athletics
Links in the pinned post below
stephengruppetta.com
• Python
Python articles www.thepythoncodingstack.com
The Python Coding Book amzn.to/42tJKOL
Real Python realpython.com
• Narrative technical writing
stephengruppetta.com/breaking-the-rules
• Track & Field Athletics
backonthetrack.substack.com
• Everything stephengruppetta.com
Up to now, programmers mastered the details of what makes programs great and robust through experience, through going though the various stages of learning and expertise, learning from more experienced colleagues…
/1
Up to now, programmers mastered the details of what makes programs great and robust through experience, through going though the various stages of learning and expertise, learning from more experienced colleagues…
/1
luma.com/5z418e58
[Free event]
luma.com/5z418e58
[Free event]
It’s important to communicate with others
It’s important to communicate with LLMs
It’s more important than ever
Thoughts?
It’s important to communicate with others
It’s important to communicate with LLMs
It’s more important than ever
Thoughts?
So, an iter-able is something that's "able to go on the journey, follow the path"
And an iter-ator is something that does what's needed to deal with the journey
Use "calculate" as a model:
/1
So, an iter-able is something that's "able to go on the journey, follow the path"
And an iter-ator is something that does what's needed to deal with the journey
Use "calculate" as a model:
/1
You can basically forget about it. It's for advanced, unusual cases.
Just use __init__! It runs automatically on every new instance.
__init__ is for assigning attributes to self (what other languages call "instance variables").
You can basically forget about it. It's for advanced, unusual cases.
Just use __init__! It runs automatically on every new instance.
__init__ is for assigning attributes to self (what other languages call "instance variables").
When opening a file, use a "with" block... especially for writing! 🧵
Closing files once you're done with them is a good practice in general.
And using a "with" block to open a file will close it automatically when the "with" block exits.
#Python #DailyPythonTip
When opening a file, use a "with" block... especially for writing! 🧵
Closing files once you're done with them is a good practice in general.
And using a "with" block to open a file will close it automatically when the "with" block exits.
#Python #DailyPythonTip
There’s
• a super-personalised one-to-one 6-month mentoring option
$ 4,750
• individual one-to-one sessions
$ 125
• a self-led route with access to 60+ hrs of exceptional video courses and a support forum
$ 400
Which The Python Coding Place student are you?
thepythoncodingplace.com
There’s
• a super-personalised one-to-one 6-month mentoring option
$ 4,750
• individual one-to-one sessions
$ 125
• a self-led route with access to 60+ hrs of exceptional video courses and a support forum
$ 400
Which The Python Coding Place student are you?
thepythoncodingplace.com
I have also started writing about one of my silly hobbies: reviewing root beers and related drinks.
Feel free to follow along if you like that sort of thing:
www.rootbrewreview.com/
I have also started writing about one of my silly hobbies: reviewing root beers and related drinks.
Feel free to follow along if you like that sort of thing:
www.rootbrewreview.com/
• I send a draft article (a Python article) so you can read through it
• On a live Zoom session, we go through the article as if we're editing it
I hope to make this a regular event - see link in quoted post. Sign up now…
Live Editing Session • Clear Technical Communication.
Here's the plan:
[see next post]
Let's try this out. If it works, we'll do more of them…
luma.com/5z418e58
[Free event]
• I send a draft article (a Python article) so you can read through it
• On a live Zoom session, we go through the article as if we're editing it
I hope to make this a regular event - see link in quoted post. Sign up now…
• How easy does Python make it to write good code?
• How hard does Python make it to write bad code?
The ideal programming language scores (1, 1)
Where would you place Python?
• How easy does Python make it to write good code?
• How hard does Python make it to write bad code?
The ideal programming language scores (1, 1)
Where would you place Python?
• How easy does Python make it to write good code?
• How hard does Python make it to write bad code?
The ideal programming language scores (1, 1)
Where would you place Python?
• How easy does Python make it to write good code?
• How hard does Python make it to write bad code?
The ideal programming language scores (1, 1)
Where would you place Python?
• I send a draft article (a Python article) so you can read through it
• On a live Zoom session, we go through the article as if we're editing it
I hope to make this a regular event - see link in quoted post. Sign up now…
Live Editing Session • Clear Technical Communication.
Here's the plan:
[see next post]
Let's try this out. If it works, we'll do more of them…
luma.com/5z418e58
[Free event]
• I send a draft article (a Python article) so you can read through it
• On a live Zoom session, we go through the article as if we're editing it
I hope to make this a regular event - see link in quoted post. Sign up now…
Live Editing Session • Clear Technical Communication.
Here's the plan:
[see next post]
Let's try this out. If it works, we'll do more of them…
luma.com/5z418e58
[Free event]
Live Editing Session • Clear Technical Communication.
Here's the plan:
[see next post]
Let's try this out. If it works, we'll do more of them…
luma.com/5z418e58
[Free event]
Lots of stuff doesn’t cost money, but it costs you lots of time.
Sometimes (many times?), paying money is cheaper than getting the free option…
[…and this is true for learning Python–don’t waste time, it’s too precious]
Lots of stuff doesn’t cost money, but it costs you lots of time.
Sometimes (many times?), paying money is cheaper than getting the free option…
[…and this is true for learning Python–don’t waste time, it’s too precious]
Live Editing Session • Clear Technical Communication.
Here's the plan:
[see next post]
Let's try this out. If it works, we'll do more of them…
luma.com/5z418e58
[Free event]
Live Editing Session • Clear Technical Communication.
Here's the plan:
[see next post]
Let's try this out. If it works, we'll do more of them…
luma.com/5z418e58
[Free event]
It’s important to communicate with others
It’s important to communicate with LLMs
It’s more important than ever
Thoughts?
It’s important to communicate with others
It’s important to communicate with LLMs
It’s more important than ever
Thoughts?
The same is true for programming, especially in this new era of AI
www.thepythoncodingstack.com/p/the-orches...
The same is true for programming, especially in this new era of AI
www.thepythoncodingstack.com/p/the-orches...
Lots of stuff doesn’t cost money, but it costs you lots of time.
Sometimes (many times?), paying money is cheaper than getting the free option…
[…and this is true for learning Python–don’t waste time, it’s too precious]
Lots of stuff doesn’t cost money, but it costs you lots of time.
Sometimes (many times?), paying money is cheaper than getting the free option…
[…and this is true for learning Python–don’t waste time, it’s too precious]
Another section in my sprinting biomechanics series…
backonthetrack.substack.com/p/13-you-pus...
Another section in my sprinting biomechanics series…
backonthetrack.substack.com/p/13-you-pus...
In a recent course, a student asked my whether it's possible to create new special methods by using leading and trailing double underscores in the name.
No. But you can* define a method with leading and trailing double underscores if you want
* you can…but you shouldn't
/1
In a recent course, a student asked my whether it's possible to create new special methods by using leading and trailing double underscores in the name.
No. But you can* define a method with leading and trailing double underscores if you want
* you can…but you shouldn't
/1
I, of course, assumed it was AI- generated
It wasn’t. The calibration of what’s real and what isn’t is still going on…
I, of course, assumed it was AI- generated
It wasn’t. The calibration of what’s real and what isn’t is still going on…
In a recent course, a student asked my whether it's possible to create new special methods by using leading and trailing double underscores in the name.
No. But you can* define a method with leading and trailing double underscores if you want
* you can…but you shouldn't
/1
In a recent course, a student asked my whether it's possible to create new special methods by using leading and trailing double underscores in the name.
No. But you can* define a method with leading and trailing double underscores if you want
* you can…but you shouldn't
/1
No worries…Python's f-strings got you covered
```
>>> agent_id = 7
>>> agent_name = "James Bond"
>>> f"Agent {agent_id:03}: {agent_name}"
'Agent 007: James Bond'
```
Note the format specifier `:03`
No worries…Python's f-strings got you covered
```
>>> agent_id = 7
>>> agent_name = "James Bond"
>>> f"Agent {agent_id:03}: {agent_name}"
'Agent 007: James Bond'
```
Note the format specifier `:03`