List Comprehensions | HACKERRANK | SOLUTION IN PYTHON | LANGUAGE PROFICIENCY | LOGIC

preview_player
Показать описание
This video contains solution to HackerRank "List Comprehensions" problem. But remember...before looking at the solution you need to try the problem once for building your logic.
Stay tuned and keep learning !
Рекомендации по теме
Комментарии
Автор

Hey man, I was stuck on this assignment, but after 40 seconds of this video I got it, when you explained that x is the range from zero to x. I didn't need to look at your code to fix it, I just wrote it out after I got that particular bit. Thank you very much. Also, for my solution, I could just write ... for i in range(x+1) ... and didn't need to specify to start from 0. Thank you for explaining.

solution = [[i, j, k] for i in range(x+1) for j in range(y+1) for k in range(z+1) if i + j + k != n]

mischavandenburg
Автор

This video contains solution to HackerRank "List Comprehensions" problem. But remember...before looking at the solution you need to try the problem once for building your logic.
Stay tuned and keep learning !

WhimsicallyMundane
Автор

thanks dude! so much love from colombia!

richardl