0

How to write as list comprehension

I'm just trying to get a better handle of list comprehensions https://code.sololearn.com/cT9Gl7VcQc70/?ref=app

6th Mar 2020, 12:29 AM
ren[paused]
ren[paused] - avatar
5 Respostas
+ 2
ren please review the following from the python tutorial in regards to list comprehension https://www.sololearn.com/learn/Python/2454/ Thank you and happy coding You may also find more from this reference https://www.pythonforbeginners.com/basics/list-comprehensions-in-python
6th Mar 2020, 2:00 AM
BroFar
BroFar - avatar
+ 2
Sure thing- I made it more complicated than it needed to be. updated to reflect a list comprehension
6th Mar 2020, 2:23 AM
ren[paused]
ren[paused] - avatar
+ 2
Thanks ren
6th Mar 2020, 2:26 AM
BroFar
BroFar - avatar
+ 2
Cheers mate thanks for the assist
6th Mar 2020, 2:28 AM
ren[paused]
ren[paused] - avatar
0
List comprehension is an example of the language's support for functional programming concepts. More... http://net-informations.com/JUMP_LINK__&&__python__&&__JUMP_LINK/ds/comp.htm
15th Jun 2020, 6:17 AM
rahul kumar
rahul kumar - avatar