List Comprehension || Python Tutorial || Learn Python Programming

///List Comprehension || Python Tutorial || Learn Python Programming

List Comprehension || Python Tutorial || Learn Python Programming

FavoriteLoadingAdd to favorites

A list comprehension is a way to construct a list in Python using a single line of code. The pattern of creating an empty list, setting up a for loop, and then using several if-then clauses to determine which data should appear in the list can all be done in a single line in Python.

➢➢➢➢➢➢➢➢➢➢
To learn Python, you can watch our playlist from the beginning:

➢➢➢➢➢➢➢➢➢➢
We recommend:
Python Cookbook, Third edition from O’Reilly

The Mythical Man Month – Essays on Software Engineering & Project Management

Shop Amazon Used Textbooks – Save up to 90%

➢➢➢➢➢➢➢➢➢➢
Subscribe to Socratica:

This video was made possible with the support of our Patrons on Patreon! We wish to particularly thank our VIP Patron Vishal Shah. Thank you for your generous support, Vishal!

To support more videos from Socratica, visit
Socratica Patreon

Socratica Paypal

We also accept Bitcoin! 🙂
Our address is: 1EttYyGwJmpy9bLY2UcmEqMJuBfaZ1HdG9

➢➢➢➢➢➢➢➢➢➢
Python instructor: Ulka Simone Mohanty
Written & Produced by Michael Harrison
FX by Andriy Kostyuk

The dress worn by the instructor can be purchased at Shenova Fashion:

source

By |2020-09-13T09:27:00+00:00September 13th, 2020|Python Video Tutorials|39 Comments

39 Comments

  1. Socratica September 13, 2020 at 9:27 am - Reply

    It's official! The Socratica Python Kickstarter was a success! Thank you to all of our supporters. Because of you, many more Python videos coming soon!! 💜🦉

  2. Aaron Baldwin September 13, 2020 at 9:27 am - Reply

    Your presentation is funny and helpful. Thanks for the videos

  3. G Dunken September 13, 2020 at 9:27 am - Reply

    1:47 because Guido did not ask you.
    I have done many scripts for work and personal use. But, when I show compact 1 liner code to my lady, she is still not impressed.

  4. Shaikh waqas September 13, 2020 at 9:27 am - Reply

    you are amazing !

  5. Piyush Udhao September 13, 2020 at 9:27 am - Reply

    i think this lady has elite sense of humor

  6. potato pizza September 13, 2020 at 9:27 am - Reply

    Codecademy skimps on details in some of their lessons. You've covered what they missed! Thank you so much.

  7. mani charanb2 September 13, 2020 at 9:27 am - Reply

    4:47 I want both year and title is it possible?

  8. Amir Mohammadian September 13, 2020 at 9:27 am - Reply

    It was awsome!!!

  9. Akash k.a September 13, 2020 at 9:27 am - Reply

    U guys are awsome😚

  10. Javed September 13, 2020 at 9:27 am - Reply

    This is exactly what i was looking for. Thanks for the videos!

  11. Trần Minh Hiếu September 13, 2020 at 9:27 am - Reply

    Thank you Trinity

  12. venkatajagadeesh kota September 13, 2020 at 9:27 am - Reply

    makes me to watch again and again .this type of teaching never in the history of teaching

  13. Harsh Rajput September 13, 2020 at 9:27 am - Reply

    Finally found someone who cares about my sanity .

  14. yash agarwal September 13, 2020 at 9:27 am - Reply

    thank you thank you thank you thank you so much i was struggling to do the matrix binary exponentiation by pisano method and i needed exactly this video

  15. CS 4U September 13, 2020 at 9:27 am - Reply

    Your voice is beautiful as your teaching techniques…

  16. Saiprashanth VS September 13, 2020 at 9:27 am - Reply

    Best audio effect for the tutorials like this.awsome.

  17. Thabang Segone September 13, 2020 at 9:27 am - Reply

    "It's now TIME for Python to SHINE, and save TIME with a single LINE"

  18. tech world September 13, 2020 at 9:27 am - Reply

    I love it madam

  19. Rakesh Reddy September 13, 2020 at 9:27 am - Reply

    comment me if u paused video to see the movies names

  20. QI Neng Gary Chin September 13, 2020 at 9:27 am - Reply

    1:52 why on why did they not use the intergalactic expression for e

  21. Mr. Crowley September 13, 2020 at 9:27 am - Reply

    Hahaha.. append yourself to our list of subscribers. Definitely subscribing.

  22. Aydawkitooo Aydawkitooo September 13, 2020 at 9:27 am - Reply

    i felt was watched some extraterrestrial subjected movie.Thank u for information))

  23. Taher Ismail September 13, 2020 at 9:27 am - Reply

    that was amazing tutorial i will definitely hit that i like it and without any doubts, I'll subscribe your channel

  24. Bryan Yeo September 13, 2020 at 9:27 am - Reply

    "append yourself to our list of subscribers"…

  25. Andrea Franceschini September 13, 2020 at 9:27 am - Reply

    Simply clear as water. Perfect.

  26. Geoffrey Ssebagala September 13, 2020 at 9:27 am - Reply

    Thanks so much. i love the way you make complex python topics easy to understand

  27. professor's choice September 13, 2020 at 9:27 am - Reply

    Here comes your new subscriber with list comprehension. Thank you, for such wonderful explanation.

  28. Hussain Dharwala September 13, 2020 at 9:27 am - Reply

    This is just Amazing. Thanks
    Subscriber.Insert(0,Hussain)

  29. דוד אמסלם September 13, 2020 at 9:27 am - Reply

    your videos is so informetive :)! i just found my new favoirte channle on youtube thank you for this video

  30. Milad Khademinori September 13, 2020 at 9:27 am - Reply

    That's just awesome.

  31. Alardingz Tm September 13, 2020 at 9:27 am - Reply

    Because of this tutorial, I earned a lot of respect in my company, everyone says my code is beautiful! Thank you!

  32. Sadam Alrazak September 13, 2020 at 9:27 am - Reply

    What if I have 4 different variables like x, y, z, and j and I want it to print ['x', 1], ['x', 2], ['x', 3], ['x', 4], ['x', 5], ['x', 6], ['y', 1], ['y', 2], ['y', 3], ['y', 4], ['y', 5], ['y', 6], ['z', 1], ['z', 2], ['z', 3], ['z', 4], ['z, 5], ['z', 6], ['j', 1], ['j', 2], ['j', 3], ['j', 4], ['j, 5], ['j', 6]] how do I do this?

  33. vincent jonathan September 13, 2020 at 9:27 am - Reply

    nice tutorials

  34. For Phone September 13, 2020 at 9:27 am - Reply

    very instrucitve, thanks

  35. Yudhisthir Singh September 13, 2020 at 9:27 am - Reply

    Man let's make them famous, share share share!

  36. Rahul Sailwal September 13, 2020 at 9:27 am - Reply

    Socratica=[me for me in Subscribers if me.liked]

    I should say this is what i always looking for…straight to the point, no bull shit. Thank you for your efforts. Awesome video.

  37. Brian Aragón September 13, 2020 at 9:27 am - Reply

    Love it 🥰

  38. Kwubeghari Tony September 13, 2020 at 9:27 am - Reply

    i love this. I am learning python all alone. This video has removed confusion from my head.

  39. By Way Of Deception September 13, 2020 at 9:27 am - Reply

    I swear you made so many nerds happy with this series. A beautiful woman explains code in a rational way.

Leave A Comment

*