filmov
tv
Python tutorial #7 || List Comprehensions - HackerRank solution

Показать описание
Python tutorial #7 || List Comprehensions - HackerRank solution
In this video we are going to learn python List Comprehensions, by solving HackerRank problem ( List Comprehensions).
This series helps you to get python certificate on hackerrank, which adds weight to your resume and helps to get placed in a good company.
---- Contents of the video -----------
0:00 - Question
0:30 - What is List Comprehension
1:35 - Solution In Python
Question:-
Let's learn about list comprehensions! You are given three integers x, y and z and representing the dimensions of a cuboid along with an integer n. Print a list of all possible coordinates (i, j, k) given by on a 3D grid where the sum of i+j+k is not equal to n. Please use list comprehensions rather than multiple loops, as a learning exercise.
Input Format
Four integers x, y, z and n, each on a separate line.
Constraints
Print the list in lexicographic increasing order.
#python
#hackerrank
#tutorial
#ListComprehensions
#learnit
#pythonforbeginners
#hackerranksolutions
#certificate
In this video we are going to learn python List Comprehensions, by solving HackerRank problem ( List Comprehensions).
This series helps you to get python certificate on hackerrank, which adds weight to your resume and helps to get placed in a good company.
---- Contents of the video -----------
0:00 - Question
0:30 - What is List Comprehension
1:35 - Solution In Python
Question:-
Let's learn about list comprehensions! You are given three integers x, y and z and representing the dimensions of a cuboid along with an integer n. Print a list of all possible coordinates (i, j, k) given by on a 3D grid where the sum of i+j+k is not equal to n. Please use list comprehensions rather than multiple loops, as a learning exercise.
Input Format
Four integers x, y, z and n, each on a separate line.
Constraints
Print the list in lexicographic increasing order.
#python
#hackerrank
#tutorial
#ListComprehensions
#learnit
#pythonforbeginners
#hackerranksolutions
#certificate