Neat, now everyone can do it from the standard library. I still wish they'd implement the interface the way I did. I overloaded division on lists and strings to allow dividing them into specifically sized chunks. I even overloaded the modulus operator so you could siphon off any oddball chunk. I should probably post it up somewhere because I really think others should copy my method here.
This is such a good idea. You should totally post it! Maybe there could be list.batch too. Or, iterator.batch (so it doesn't just work for lists). I could see division as meaning only giving a single chunk, that is 1/n times the size of the original list. I haven't thought about it too much though. I don't see many use cases for the single chunk 1/n idea and I see a lot of use cases for your idea so I think your idea is probably much more useful. Plus many operators are near what they would intuitively mean rather than exactly what they intuitively mean so.
Is there any good reason to type annotate a variable that is being initialized with data? Pydantic already knows the expected type of the object you're assigning to the variable.
Actually, after execution we got tuple as 9 alone.. In this case what should we do when came up with (9,0). 0 represents the non value when splitting it.
How to make telegram group shilling bot? Did you make any tutorial, if not, Can you please make one? Can we use botfather to make a shilling bot? Thank you
Neat, now everyone can do it from the standard library. I still wish they'd implement the interface the way I did. I overloaded division on lists and strings to allow dividing them into specifically sized chunks. I even overloaded the modulus operator so you could siphon off any oddball chunk. I should probably post it up somewhere because I really think others should copy my method here.
This is such a good idea. You should totally post it! Maybe there could be list.batch too. Or, iterator.batch (so it doesn't just work for lists). I could see division as meaning only giving a single chunk, that is 1/n times the size of the original list. I haven't thought about it too much though. I don't see many use cases for the single chunk 1/n idea and I see a lot of use cases for your idea so I think your idea is probably much more useful. Plus many operators are near what they would intuitively mean rather than exactly what they intuitively mean so.
Ironically needed this method this week lol. Great video!
Could you do a video about Micropython? I'm using it on a project and found it to be pretty impressive.
Your doing so great❤.
01:21 Also a comprehensive video on generators.
the fact that i literally needed this
Great thanks
That short tips are the best 👍
Thanks 🎉🎉
Is there any good reason to type annotate a variable that is being initialized with data? Pydantic already knows the expected type of the object you're assigning to the variable.
Actually, after execution we got tuple as 9 alone.. In this case what should we do when came up with (9,0). 0 represents the non value when splitting it.
Awesome 😅
Isn't this the merge sort method ?
I have created a separate folder for this amazing series.
🙏🏻🙂👍🏻
How to make telegram group shilling bot? Did you make any tutorial, if not,
Can you please make one?
Can we use botfather to make a shilling bot?
Thank you
hi