Back again on f-strings - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Back again on f-strings (/thread-21805.html) Pages:
1
2
|
RE: Back again on f-strings - newbieAuggie2019 - Oct-15-2019 (Oct-15-2019, 11:52 AM)perfringo Wrote: I agree with buran that his solution is more life-like than oneliner and therefore longer. I'm just a bit shocked that what I thought it was going to be something simple, it is indeed much more complicated than I had expected, probably due to my naïvety and still ongoing huge lack of knowledge. All the best, (Oct-15-2019, 12:07 PM)buran Wrote: inflect will not handle list with numerical values, range object or generator expressions. you need to preprocess these and convert to list/tuple with str elements. That's why you get the first error I guess that I'm going to need much more time than expected sorting out what I had previously thought as an easy-peasy problem. All the best, RE: Back again on f-strings - newbieAuggie2019 - Oct-16-2019 (Oct-15-2019, 09:40 AM)newbieAuggie2019 Wrote: Hi! (Oct-15-2019, 12:27 PM)newbieAuggie2019 Wrote: I'm just a bit shocked that what I thought it was going to be something simple, it is indeed much more complicated than I had expected, probably due to my naïvety and still ongoing huge lack of knowledge. After giving it some further thought, and seeing that trying to do it with f-strings is more complicated than I originally expected, I think I'm going to follow the saying 'If it ain't broke, don't fix it'. After all, my original program was working and had no problems in dealing with different types of lists, not having to use modules or expressions that I don't fully understand as a newbie. I thank all of you that have given your thoughts and ideas to my little dilemma, and I'm going to set it solved. All the best, |