11 Antworten
+ 17
https://code.sololearn.com/c4a6gDBCnZac/?ref=app
+ 5
remember, one-liner is only for learning and for fun, never to do it at your workplace
https://code.sololearn.com/cZGiT4dCgn54
+ 4
If you could ignore please the extra statements just to show what I was doing (dumping structures)...
Here's something I over-engineered:
https://code.sololearn.com/cNUY5Q0bACDc/?ref=app
My only excuse: I was forcing myself to use language features like 'chain' but the end result wasn't very approachable.
Take a look at Cépagrave's response. It's nice.
https://code.sololearn.com/ckkM7Z5jNaLy/?ref=app
+ 3
Thanks God, I thought I am crazy and code sick guy but you guys (VcC and Cépagrave) are make me feel I am normal. Thanks for sharing your experiences.
+ 3
according to me you should use inbuilt function it will reduce the code size
+ 1
how to start py.games on Python plz guide me
+ 1
some tips
https://code.sololearn.com/cQ2Jh8YoXY0s
0
There are great tools like list comprehension, lambdas, methods and etc that are only available in python. I am intrested in this subject too. I send 2 codes from code couch problems that i solved in one line.
https://code.sololearn.com/c2k1ymzLoj9n/?ref=app
https://code.sololearn.com/ceMN9dKxb2lm/?ref=app