Back to Browse

[Python Programming Basics to Advanced] : List Comprehension | Lab 21

1.2K views
Jan 29, 2021
26:00

This Python programming playlist is designed to take beginners with zero programming experience to an expert level. The course covers installation, basic syntax, practical scenarios, and efficient logic building. The course material includes PDF handouts, review questions, and covers a wide range of topics, from data types to advanced functions like Lambda and Recursive functions, Generators, and JSON data parsing. In this lesson we will learn about List Comprehension. It is a technique by which we can create a list with processing of some other iterable in just one line of code. Introduction of List Comprehension and Syntax 0:0 List Comprehension with Filtering 02:52 List Comprehension with if-else 11:13 List Comprehension with Multiple Iterables 14:01 Zip Function 15:00 Processing Nested Lists with List Comprehension 20:07 Generating List of Nested Lists using List Comprehension 22:45 Complete Playlist: https://www.youtube.com/playlist?list=PLWF9TXck7O_wMDB-VriREZ6EvwkWLNB7q If you have the basic programming knowledge and interested to learn Object-Oriented Programming in Python, check out this playlist: https://www.youtube.com/playlist?list=PLWF9TXck7O_zuU2_BVUTrmGMCXYSYzjku Lab Manual 21 can be downloaded from here: https://github.com/MAN1986/Python-Programming-Basics/blob/main/Lab%20Session%2021.pdf Review Questions: Create three lists using List Comprehension with names x, y and z having 10 floating values generated randomly between -15 and 15. Consider the values of the lists x, y and z as 3D point in space (X,Y,Z). Generate another list of 3D points as Tuples from the three lists, which lie inside the Upper Half Sphere of radius 10. Upper half means the part of the sphere in +ve y-direction only. #PythonProgramming #python #pythontutorial

Download

1 formats

Video Formats

360pmp438.6 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

[Python Programming Basics to Advanced] : List Comprehension | Lab 21 | NatokHD