— But let's not give him code he won't be able to explain
— Can be made shorter if you disregard any style guides :P
— I know, but map here seems more obvious . Btw both solutions are not suitable for student his leve.
— Yeah, better to use a common for
loop to explain it
— Production tought me to follow flake/pep recommendations even if i am asleep:)
— Then you're missing a space after the comma inside you range()
call 😝
— Probably cuz he's awake