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`
Spotlight on both beginners' courses at The Python Coding Place
• Both great for beginners
• But different in style
• You don't have to choose—get both
Both included in Black Friday All-Courses Bundle • Only $200
thepythoncodingplace.thinkific.com/bundles/the-...
Spotlight on both beginners' courses at The Python Coding Place
• Both great for beginners
• But different in style
• You don't have to choose—get both
Both included in Black Friday All-Courses Bundle • Only $200
thepythoncodingplace.thinkific.com/bundles/the-...
What's the difference between a statement and an expression? And why does it matter?
Let's explore:
/1
What's the difference between a statement and an expression? And why does it matter?
Let's explore:
/1
…and it’s now coming to The Python Coding Place
Stay Tuned!
Code name: One
…and it’s now coming to The Python Coding Place
Stay Tuned!
Code name: One
I had to split them across several posts as they don't fit in just one! See the quoted posts…
thepythoncodingplace.thinkific.com/bundles/the-...
• A Turtle Tale: A visual introduction to Python programming
• Worked Exercises for A Python Tale
• Pythonic Loops & Comprehensions
• How Functions Function • An Intermediate Level Course on Functions
…
I had to split them across several posts as they don't fit in just one! See the quoted posts…
thepythoncodingplace.thinkific.com/bundles/the-...
I had to split them across several posts as they don't fit in just one! See the quoted posts…
thepythoncodingplace.thinkific.com/bundles/the-...
• A Turtle Tale: A visual introduction to Python programming
• Worked Exercises for A Python Tale
• Pythonic Loops & Comprehensions
• How Functions Function • An Intermediate Level Course on Functions
…
I had to split them across several posts as they don't fit in just one! See the quoted posts…
thepythoncodingplace.thinkific.com/bundles/the-...
• A Turtle Tale: A visual introduction to Python programming
• Worked Exercises for A Python Tale
• Pythonic Loops & Comprehensions
• How Functions Function • An Intermediate Level Course on Functions
…
• A Turtle Tale: A visual introduction to Python programming
• Worked Exercises for A Python Tale
• Pythonic Loops & Comprehensions
• How Functions Function • An Intermediate Level Course on Functions
…
This is a great framework for beginners who may struggle to decide which tools are needed when writing code.
• Do you need to store some information to use later on in your program? Think of what data type you may need
/1
This is a great framework for beginners who may struggle to decide which tools are needed when writing code.
• Do you need to store some information to use later on in your program? Think of what data type you may need
/1
Beginners and intermediate Python learners, are you there?
…
Beginners and intermediate Python learners, are you there?
…
I was regenerating into Monty 3.14. The process is complete now. So I’m back
I was regenerating into Monty 3.14. The process is complete now. So I’m back
I was regenerating into Monty 3.14. The process is complete now. So I’m back
I was regenerating into Monty 3.14. The process is complete now. So I’m back
50% off on a 12-course Python bundle
–the friendliest and clearest Python video courses you'll find
–from beginner to intermediate…
…and access to exclusive forum, too
50% OFF HERE:
thepythoncodingplace.thinkific.com/bundles/all-...
50% off on a 12-course Python bundle
–the friendliest and clearest Python video courses you'll find
–from beginner to intermediate…
…and access to exclusive forum, too
50% OFF HERE:
thepythoncodingplace.thinkific.com/bundles/all-...
…so, for the first 42 of you, here's a FREE copy of The Python Coding Book, the friendliest and most relaxed Python textbook for beginners you'll find
42 copies only:
thepythoncodingplace.thinkific.com/enroll/29066...
…so, for the first 42 of you, here's a FREE copy of The Python Coding Book, the friendliest and most relaxed Python textbook for beginners you'll find
42 copies only:
thepythoncodingplace.thinkific.com/enroll/29066...
…so, for the first 42 of you, here's a FREE copy of The Python Coding Book, the friendliest and most relaxed Python textbook for beginners you'll find
42 copies only:
thepythoncodingplace.thinkific.com/enroll/29066...
…so, for the first 42 of you, here's a FREE copy of The Python Coding Book, the friendliest and most relaxed Python textbook for beginners you'll find
42 copies only:
thepythoncodingplace.thinkific.com/enroll/29066...
T W E L V E
P Y T H O N
C O U R S E S
All bundled together for just $200
That’s 50% OFF
thepythoncodingplace.thinkific.com/bundles/all-...
T W E L V E
P Y T H O N
C O U R S E S
All bundled together for just $200
That’s 50% OFF
thepythoncodingplace.thinkific.com/bundles/all-...
T W E L V E
P Y T H O N
C O U R S E S
All bundled together for just $200
That’s 50% OFF
thepythoncodingplace.thinkific.com/bundles/all-...
T W E L V E
P Y T H O N
C O U R S E S
All bundled together for just $200
That’s 50% OFF
thepythoncodingplace.thinkific.com/bundles/all-...
What's not to love about this this deal…
A range of friendly courses ranging from beginner to intermediate.
Plus: free e-copy of The Python Coding Book and exclusive forum access
thepythoncodingplace.thinkific.com/bundles/all-...
What's not to love about this this deal…
The current rise in AI isn't replacing programmers
Instead, it's boosting how much they can do
The Python fundamentals will take you much further today than they ever did thanks to AI tools…
thepythoncodingplace.thinkific.com/bundles/all-...
The current rise in AI isn't replacing programmers
Instead, it's boosting how much they can do
The Python fundamentals will take you much further today than they ever did thanks to AI tools…
thepythoncodingplace.thinkific.com/bundles/all-...
And I've got something special for you • but be quick…
ALL Python courses in one bundle • 50% OFF
+ access to exclusive forum
+ free e-copy of The Python Coding Book
Get bundle here
thepythoncodingplace.thinkific.com/enroll/35042...
And I've got something special for you • but be quick…
ALL Python courses in one bundle • 50% OFF
+ access to exclusive forum
+ free e-copy of The Python Coding Book
Get bundle here
thepythoncodingplace.thinkific.com/enroll/35042...
I'm Monty, the Chief Mischief Officer at The Python Coding Place.
Expect trouble from me…
You can ask me Python stuff, too (if you're brave enough to handle my responses)
I'm Monty, the Chief Mischief Officer at The Python Coding Place.
Expect trouble from me…
You can ask me Python stuff, too (if you're brave enough to handle my responses)
I went on the show to talk about writing (about Python), the module `itertools`, the idea of idioms in programming, and more!
Let me know what you think 🙏
realpython.com/podcasts/rpp...
I went on the show to talk about writing (about Python), the module `itertools`, the idea of idioms in programming, and more!
Let me know what you think 🙏