[Python-ideas] Re: A string function idea

2022-03-29 Thread StrikerOmega
orrect output. Julio Cabria Engineering student Autonomous University of Madrid On Tue, Mar 29, 2022, Steven D'Aprano wrote: > On Mon, Mar 28, 2022 at 02:13:32PM +0200, StrikerOmega wrote: > >> You can also "grab" values enclosed in brackets or in any kind of

[Python-ideas] A string function idea

2022-03-28 Thread StrikerOmega
Hello everyone, When I am coding in Python I often encounter situations where I have a string like this one. sample=""" fruit:apple tree:[Apple tree] quantity:{5} quantity:{3} """ And I want to grab some kind of value from it. So let me introduce you to the grab function. This is the definition