For those of you playing along at home: If you're enjoying these tutorials as much as I am but dislike typing in long lists and tuples as much as I do, here are the data sets for your cut-and-paste pleasure. Extra typos provided free of charge. movies1 = ["Star Wars", "Gandhi", "Casablanca", "Shawshank Redemption", "Toy Story", "Gone With the Wind", "Citizen Kane", "It's a Wonderful Life", "The Wizard of Oz", "Gattaca", "Rear Window", "Ghost Busters", "To Kill a Mockingbird", "Good Will Hunting", "2001: A Space Odyssey", "Raiders of the Lost Ark", "Groundhog Day", "Close Encounters of the Third Kind"] movies2 = [("Citizen Kane", 1941), ("Spirited Away", 2001), ("It's a Wonderful Life", 1946), ("Gattica",1997), ("No Country for Old Men",2007), ("Rear Window",1954), ("The Lord of the Rings: The Fellowship of the Ring", 2001), ("Groundhog Day", 1993), ("Close Encounters of the Third Kind", 1977), ("The Royal Tenenbaums", 2001), ("The Aviator", 2004), ("Raiders of the Lost Ark", 1981)]
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!! 💜🦉
I came over this video by chance and I am delighted by your ability to explain things as clearly as possible. Also I really appretiate great vocal. Thanks!
Seriously, you guys have changed the way to teach. Its like I'm watching python scifi movie. You guys are rocking. Thank you for complete team for marking these beautiful tutorials
Hello, Socratica! I am a Python self-taught and you are being a precious help in this learning process. I have faced some difficulties and several times I was about to give up but when this is almost happening there is something that suddenly gives me the courage to move on. Now I have the fortune to discover your magnificent channel and so continue learning Python with your wonderful tutorial. I feel that this is what I needed to fulfill my dream of becoming a programmer one day. When that happens I will give the name Socratica to the first program that I will develop in your honor. Thank you, my friends!
The double asterisk "**" is used for exponents because in general purpose programming the circumflex or caret "^" was already taken for "start of line" in file parsing, eg regex and for the bit-wise OR operator in C. Old languages didn't have any exp operator because it isn't/wasn't a primitive hardware operation in most CPUs thus exponentiation is provided via a libraries or custom functions. More semantically speaking in various syntax that use the circumflex or caret "^" such as LaTex or MathJacks it actually represents a shift to superscript not necessarily exponentiation (in turn superscript when used with a number is what formally means exponent, but superscript is also used for sigma style sum notation and integral notations.) In addition Python borrows heavily from C conventions and part of the advantage of Python is that it can interact with C more cleanly than many other languages. No need to reinvent the wheel or create mental syntax switching problems for the developer using both languages or simply using regex syntax.
I was having a difficult time understanding list comprehensions in the Udemy python course I'm taking, so I came here. This is my first time watching one of your videos, and it was sooo helpful. I particularly appreciated the use of an engaging, real-world example of list comprehensions involving tuples (i.e., movies from the year 2000). Quadruple points for the sci-fi aesthetic!
I'm strictly Javascript these days, but I am so happy I stumbled on your videos tonight. You're hilarious and enlightening. I have appended my name to your subscriber list.
this is my favorite coding tutorial of all :) no trying to be an entertainer or showman, no blabbering about coworkers and their names and interests. straight facts. and a sexy voice that reminds me of spymovies :)
Finding this series has made me realize that every other channel that teaches Python is doing it wrong. This series is incredible, and I would be more than willing to buy these videos.
this style is so cool...and sarcastically funny at the same time!😂😂 the examples and explanations themselves are amazing, thank you guys for creating such an interesting video tutorial !!
I have been teaching myself Python over a popular website, but their exercises are very few, and I find it hard to come up with ideas to practice on my own at this stage. This short video has taught me much more than what I have tried to learn for hours on that website! Kudos to Socratica!
I tried learning the walrus operator last night, and tried applying it with the list comprehension examples given in this video. Its things like this that amaze me and make it fun to continue learning. Example: print( squares2 := [ i**2 for i in range(1,101) ] )
Woooow,i feel like i am watching my favorite movie and learning my favorite subject with my favorite teacher at a time! just wonderful. my Question is how on earth i didn't watch this till now?
I am really impressed by this tutorial. I have ADD and it kept my attention lol. Thnk you for making this and I will now be using socratica for my coding studies.
Just watched one video in this series and that made me to complete the whole series in one shot. It would be better if u upload more videos without taking much time. Awesome work.
I love these videos so much. Lots of information packed in small videos with out other unnecessary information. I want socraticas voice for my Google home too lol
Starting this video, it felt kind of gimmicky But I can't deny, this is an insanely good video with easy to understand and direct content Fantastic work!
It's purely amazing how beautifully it is explained. I just subscribed to this channel. Congrats for making such beautiful and informative content and thank you!!
I graduated from beginner Python and moved to intermidate. The jump from beginner to intermediate was huge, these list comprehension are a major road block for me. Just got to keep practicing.
Hey @Socratica at 3:18 (Quadratic Reciprocity), it must be len(set(p_remainders)) = (p+1)/2 since you would have repeated elements in the list if you don't use set to discard the repeated remainders. And thanks for the your awesome videos, you guys are doing a great job!
0:44 list comprehension 1:27 1. example 2:02 2:21 more complex example 3:22 3:52 list comprehension example for list of string 4:20 example of filtering list with comprehension 4:50 mathematical example 5:48 Cartesian product example 6:28
Thank you for explaining list comprehensions so clearly and simply. I thought they were pretentious when I didn't understand them, but now I see the value. Great video :D
When I discovered your channel I already knew how to program in Python, but either way I saw all of your videos, because they're amazing and also funny. Well done and please keep up with your Python section.
That was extremely informative, and the presentation just keeps it more interesting for good old scifi fans like myself 😊 gonna have to watch all your videos now
Wear a Socratica Python shirt for good luck coding: shop.socratica.com/products/python-by-socratica
"So please, append yourself to our list of subscribers" is pure gold...
That was the point I liked the video
@@somtovitus +1
likes += 1
@@Zeddy27182 likes++; is actually better
For those of you playing along at home: If you're enjoying these tutorials as much as I am but dislike typing in long lists and tuples as much as I do, here are the data sets for your cut-and-paste pleasure. Extra typos provided free of charge.
movies1 = ["Star Wars", "Gandhi", "Casablanca", "Shawshank Redemption", "Toy Story", "Gone With the Wind",
"Citizen Kane", "It's a Wonderful Life", "The Wizard of Oz", "Gattaca", "Rear Window", "Ghost Busters",
"To Kill a Mockingbird", "Good Will Hunting", "2001: A Space Odyssey", "Raiders of the Lost Ark", "Groundhog Day",
"Close Encounters of the Third Kind"]
movies2 = [("Citizen Kane", 1941), ("Spirited Away", 2001), ("It's a Wonderful Life", 1946), ("Gattica",1997), ("No Country for Old Men",2007),
("Rear Window",1954), ("The Lord of the Rings: The Fellowship of the Ring", 2001), ("Groundhog Day", 1993),
("Close Encounters of the Third Kind", 1977), ("The Royal Tenenbaums", 2001), ("The Aviator", 2004), ("Raiders of the Lost Ark", 1981)]
This comment is 4 years old and still gold. Thank you
Thanks man
Yeah , you’re definitely God sent…
You're the best. Seriously saved me 5 minutes of my life
"Python cares about your sanity" love this xD
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!! 💜🦉
I came over this video by chance and I am delighted by your ability to explain things as clearly as possible. Also I really appretiate great vocal. Thanks!
Looking forward to it!
4 months already, where is it🤷
You guys/girls/...are soooo goood. I came across by coincidence and i was absolutely shocked by this Peculiar way to explain it. You nail it!
Seriously, you guys have changed the way to teach. Its like I'm watching python scifi movie. You guys are rocking. Thank you for complete team for marking these beautiful tutorials
"Python cares about your sanity", should be the motto of Python :D
Hahahahaha this makes my day, but honestly.... Why not
Actually, it doesn't compared to some of the other languages.
Ugh I'm the 70th like. Should have left it at 69
you are causing a revolution in the way people learn stuff.
I absolutely cannot believe this channel exists. In-depth content presented so compellingly. Amazing
That's so kind of you to say, thank you! We're so glad you're watching. :)
Hello, Socratica! I am a Python self-taught and you are being a precious help in this learning process. I have faced some difficulties and several times I was about to give up but when this is almost happening there is something that suddenly gives me the courage to move on. Now I have the fortune to discover your magnificent channel and so continue learning Python with your wonderful tutorial. I feel that this is what I needed to fulfill my dream of becoming a programmer one day. When that happens I will give the name Socratica to the first program that I will develop in your honor. Thank you, my friends!
Thank you for this amazing comment. We are thrilled to play a small part in your journey! Stay the course, my friend.
So after 3 years of typing this comment, have you become a professional developer?
@@georgiosdoumas2446 I knew someone would ask this.
@@gauravnegi4312 lol
Everyone is self taught..
One of the best 'list comprehension' explanations I've seen.
OMG I just love the python series. I would pay cold hard cash for more in-depth computer science videos like this.
likewise
microwave ur cash b4 u give it to me
Support what you love! Socratica has a Kickstarter to make more Python: bit.ly/PythonKickstarter
The people making these videos are absolutely genius.
reading about list comprehension seemed complex and difficult to understand but Socratica cleared this topic in minutes....wow thannk you!
This is so great to hear!! 💜🦉
Probably the best Python tutorial series on TH-cam.
I was struggling with this all day until I saw this. Needless to say I will be coming back for more tutorials. thank you!
This channel is a hidden gem, Since two days my productivity level is going higher n higher...
Socratica has just revolutionized the learning experience; l'm indeed grateful to the team! You rock, Socratica!!
The double asterisk "**" is used for exponents because in general purpose programming the circumflex or caret "^" was already taken for "start of line" in file parsing, eg regex and for the bit-wise OR operator in C. Old languages didn't have any exp operator because it isn't/wasn't a primitive hardware operation in most CPUs thus exponentiation is provided via a libraries or custom functions.
More semantically speaking in various syntax that use the circumflex or caret "^" such as LaTex or MathJacks it actually represents a shift to superscript not necessarily exponentiation (in turn superscript when used with a number is what formally means exponent, but superscript is also used for sigma style sum notation and integral notations.)
In addition Python borrows heavily from C conventions and part of the advantage of Python is that it can interact with C more cleanly than many other languages. No need to reinvent the wheel or create mental syntax switching problems for the developer using both languages or simply using regex syntax.
wolfedog99. It borrowed from Fortran
Why oh why
This is way beyond me ....
I was having a difficult time understanding list comprehensions in the Udemy python course I'm taking, so I came here. This is my first time watching one of your videos, and it was sooo helpful. I particularly appreciated the use of an engaging, real-world example of list comprehensions involving tuples (i.e., movies from the year 2000). Quadruple points for the sci-fi aesthetic!
Yo what is this gold the style is amazing!
"It's now TIME for Python to SHINE, and save TIME with a single LINE"
I'm strictly Javascript these days, but I am so happy I stumbled on your videos tonight. You're hilarious and enlightening. I have appended my name to your subscriber list.
Because of this tutorial, I earned a lot of respect in my company, everyone says my code is beautiful! Thank you!
Best audio effect for the tutorials like this.awsome.
when i watch your video i get next level of energy, thank you socratica for your wonderful video
i love this. I am learning python all alone. This video has removed confusion from my head.
this is my favorite coding tutorial of all :)
no trying to be an entertainer or showman, no blabbering about coworkers and their names and interests.
straight facts. and a sexy voice that reminds me of spymovies :)
We're halfway there. We still need your help! Support Socratica Python Kickstarter: bit.ly/PythonKickstarter
Excellent Videos, the story telling effect, the pauses, the content, everything.
Here comes your new subscriber with list comprehension. Thank you, for such wonderful explanation.
Love this teaching style Lol.
30 seconds in and I like the channel already.
Teaching is an art and you possess this skill :)
Finding this series has made me realize that every other channel that teaches Python is doing it wrong. This series is incredible, and I would be more than willing to buy these videos.
this style is so cool...and sarcastically funny at the same time!😂😂 the examples and explanations themselves are amazing, thank you guys for creating such an interesting video tutorial !!
Thank you, I`ve just deleted two whole functions and instead added three letters to my list comprehension! :D so happy about it!
1:27 should be
[expr for val1 in collection1 *for* val2 in collection2]
Good spot, I fount it confusing as well
Exactly
yes, it can be also seen in the last example of the video
I have been teaching myself Python over a popular website, but their exercises are very few, and I find it hard to come up with ideas to practice on my own at this stage. This short video has taught me much more than what I have tried to learn for hours on that website! Kudos to Socratica!
I have been struggling with this topic for the last day or so. This video was very helpful in learning this concept, thank you for making it!
This channel is so underrated it deserves more views and subscribers
Keep them coming. This can't fail.
Your videos are awsome. FAST, CLEAR,UNDERSTANDABLE
I tried learning the walrus operator last night, and tried applying it with the list comprehension examples given in this video. Its things like this that amaze me and make it fun to continue learning.
Example:
print( squares2 := [ i**2 for i in range(1,101) ] )
subscriber.append('Roshan Pandey')
subscriber['Roshan Pandey'] = null
@snulizer Python has "NONE" hahaaha
yeah, she got me after the first 30 seconds hahh
@@__-bc2op lol :D
@@sebasmediaprod python doesn't have "NONE", it has "None"
Woooow,i feel like i am watching my favorite movie and learning my favorite subject with my favorite teacher at a time!
just wonderful.
my Question is how on earth i didn't watch this till now?
I am really impressed by this tutorial. I have ADD and it kept my attention lol. Thnk you for making this and I will now be using socratica for my coding studies.
Just watched one video in this series and that made me to complete the whole series in one shot. It would be better if u upload more videos without taking much time. Awesome work.
Simply clear as water. Perfect.
Complex topics in a single video!!! Great.
I thought I was really getting the hang of python until I got to list comprehensions. This video really helped A LOT though. Thanks!
I love these videos so much. Lots of information packed in small videos with out other unnecessary information. I want socraticas voice for my Google home too lol
You guys do a brilliant job in democratising education. Many Thanks!
Thank you for your kind words and generous donation!
Starting this video, it felt kind of gimmicky
But I can't deny, this is an insanely good video with easy to understand and direct content
Fantastic work!
Hahaha.. append yourself to our list of subscribers. Definitely subscribing.
I personally think this style of teaching python is brilliant shame there is not more lately like this
I love these videos! The information is top shelf, and the humor is extra EXTRA dry!
Codecademy skimps on details in some of their lessons. You've covered what they missed! Thank you so much.
This was great to hear - thanks for letting us know! 💜🦉
It's purely amazing how beautifully it is explained. I just subscribed to this channel. Congrats for making such beautiful and informative content and thank you!!
We're so glad you've found us! Thank you for your kind words. 💜🦉
Finally a video that explained all the details I needed! Thank you!
Never understood List comprehension in a better way before this :) Thanks
I graduated from beginner Python and moved to intermidate. The jump from beginner to intermediate was huge, these list comprehension are a major road block for me. Just got to keep practicing.
Hey @Socratica at 3:18 (Quadratic Reciprocity), it must be len(set(p_remainders)) = (p+1)/2 since you would have repeated elements in the list if you don't use set to discard the repeated remainders.
And thanks for the your awesome videos, you guys are doing a great job!
Top notch video presentation and content. I absolutely love how your videos are able to hold my attention until the end.
The way you connect the concepts to real world, it's Simply Superb👌👌.
Python cares about your sanity!
Best video ever! It really teach how to save time while coding lists
1:24 the last expression should be [expr for val1 in collection 1 for val2 in collection2]. It is for val2 instead of and val2.
Definitely helped me understand list comprehensions much better!
I love using list comprehensions, so neat! :)
A nested loop... in a single line of code. I'm in love :D
thanks for this video. just started learning python and was struggling with list comprehensions, but this helped me
for numpy arrays multiplication is applied element-wise: [1,2,3]*4 = [4,8,12]
Excellent pronunciation of Descartes. Edit: I love your videos and have appended myself to your list.
One of best channels.
This is a great video about list comprehensions.
I love your content :) .
This is a great video about list comprehensions. Python is a neat language!
that intro made a smile on my face thanks.
I absolutely love this videos
loved the teaching style
and the way of teaching is very easy to understand
We need more of these videos...
It'll be really helpful if you can introduce analytics concepts with python.
Bless you people :)
This is exactly what i was looking for. Thanks for the videos!
i love programming soooo much to learn
The outro is just epic!!!!!
Amazing video! I liked the futuristic-robot voice style
0:44 list comprehension
1:27 1. example
2:02
2:21 more complex example
3:22
3:52 list comprehension example for list of string
4:20 example of filtering list with comprehension
4:50 mathematical example
5:48 Cartesian product example
6:28
This woman needs to be the next command and conquer computer helper voice ("Building...." "Building complete" "Our base is under attack.")
"append to our list of subscribers" THAT WAS HILARIOUS XDDDDDDDDDDDDD
When I heard "Append yourself to our list of subscribers", I was bought!
it is like hollywood cinema..
like u .... and ure way of teaching .....sister
Your explanation is very unique! it's for everyone including mathematicians.
Thank you for explaining list comprehensions so clearly and simply. I thought they were pretentious when I didn't understand them, but now I see the value. Great video :D
This was amazing to read, thank you for letting us know!! 💜🦉
When I discovered your channel I already knew how to program in Python, but either way I saw all of your videos, because they're amazing and also funny. Well done and please keep up with your Python section.
Awesome.Finally one best video I was looking for.
This is a phenomenal way of teaching and explaining things. I am in love with this channel :)
One of best channels. Thanks for sharing the knowledge. Big Fan.
These videos are weird super weird, but damn they work well!!! #1 channel for learning
Greatly explained. A lot of effort is put in this video
for 4:40 you can also write
print(list(x[0] for x in fruits if x[1] >= 400))
That was extremely informative, and the presentation just keeps it more interesting for good old scifi fans like myself 😊
gonna have to watch all your videos now
Such a great channel.