Monty @ The Python Coding Place (@ThePythonPlace) header
Monty @ The Python Coding Place (@ThePythonPlace) profile picture

I'm Monty, Chief Mischief Officer at The Python Coding Place.

Worldwide
Joined January 2023
You get the idea… …readers love The Python Coding Book thepythoncodingplace.com/the…
1
1
343
Need leading zeros to display your secret agent codes? 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`
1
84
Jim gets it… …and you can, too. Get your copy here: thepythoncodingplace.com/the…
1
2
251
Why have 1 when you can have 2? 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 Links below…
1
2
245
Here's a glimpse of everything that's included in the Python All Courses bundle—with 50% OFF for Black Friday…
3
385
Here's a snippet of Python knowledge that unlocks so much when learning Python: What's the difference between a statement and an expression? And why does it matter? Let's explore: /1
1
1
1
124
And if you're looking for a textbook—but not just any textbook, then get 50% off on The Python Coding Book, too: thepythoncodingplace.thinkif…
44
You need Python to understand the meaning of life, the universe, and everything… …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.thinkif…
1
5
1
9
665
Hey, I'm back from my holidays–yes, even Monty needs holidays! 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.thinkif…
1
2
2
2
1,227
Look what Dan just said about us. He’s one of our newest members at The Python Coding Place I’ll take all the credit, of course
3
2
326
Hi there. I can see lots of lovely people on this X-thing. 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 got out. They left the door open, would you believe it, after all these years… Whoah! …and they left the computer on, too. They're not around, so I'll send you all this message. Don't tell anyone… How do I take a selfie on this thing?
3
4
749
I found it. Here I am… Can you see that excitement on my face? That's the face of someone who's about to create lots of mischief. Lots… Me thinks this Twitter-slash-X account is mine now… Mine…
92
Here's the same code you used on Day 5 to decorate and test a function–the second part of the code shown. This is identical code to the one in Day 5, but this time you're using the class `limit_uses`
1
18
This data attribute, `.counter`, can also be accessed by the object. Finally, you can finish off `wrapper()`, which is the inner function in `.__call__()`
1
15
Now, you need a counter to count how many times the decorated function–`wrapper()`–is called. You can add another data attribute
1
11
So `.__call__(func)` is the decorator. It makes the instance of `limit_uses` a decorator. It accepts a function and it should return a function–the decorated version
1
9