The floatify solution is a bit involved - using map inside a list 
comprehension. Usually list comprehensions replace the usage of map. Also 
floatify requires 5 extra lines of code (putting `return` on the same line is 
not a best practice). Why not do it with one simple line of code ?

Debashish
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/EBO343XKRLHEP35IXBP6QYK4YD4UM7YN/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to