Комментарии:
Using list comprehension for print is a very bad example. Compared to the the ordinary for-loop, an implicit list of return values from print is generated.
Also the statement, that append(...) isn't used in list comprehension isn't true. It's not explicitly written as code, but somehow, elements need to be added to the list.
The presentation states that some code is faster than other code, but no evidence is shown e.g. by using timeit.
boolean values shouldn't be compared (==) with True. At first use "is True". At second, a call to the "is" operator can be skipped, because a boolean can be used directly in an if statement.
Moreover there is no if-statement needed, as booleans can be directly converted to integers by calling int(...).
list comprehension for strings ...
I have no words how silly this is.
---------------
Sorry, but such tutorials are the root cause for so many bad Python code in the world.
Just because you can do it, doesn't mean you should do it; neither you should teach others !
There are many good use cases for list comprehensions. There are also lots of use cases when list comprehensions are more compact, more readable and way faster than ordinary loops. But the given examples in this tutorial are neither.
I love your way of teaching, I understand it perfectly,
ОтветитьThanks a lot for the tutorial and you are exuberant. Love your teaching style too. Looking forward for more. 🙏🏼
ОтветитьThank you Bananas Mariya. I learned a lot.
ОтветитьCan you please upload a video on Pascal's triangle?
ОтветитьGreat 🎉
ОтветитьHi Maria
ОтветитьDevelop a program that computes the sum of even and odd numbers in a list separately using list comprehension.
please give mi the solution of this question.
Thank you! very helpful explanation
ОтветитьThank you! You are a very good teacher👍
ОтветитьOne should learn from her how to teach to viewers or students offline or online, she got a gift of smile on her face, that makes her more beautiful in teaching, she is so passionate in teaching.
ОтветитьAwesome video. You made the whole concept so easy. Thank You.
ОтветитьI don't know why but it's starting to smell like wet dog. btw thank you so much, this was really helpful.
ОтветитьThanks a lot Maria :) Love your videos. It was an awesome "list comprehension" explanation.
ОтветитьYou are like the goodest in python. Herma
ОтветитьOMG you're so pr3tty! All of a sudden I'm interested in Python 😆😆
Not but seriously good content!
“Comment”
ОтветитьThank you Mariya
ОтветитьNot bad .... now frig off barb hahaha 😅😉😉
Ответитьtakes a shot every time u hear beautiful...
Ответитьawesome
ОтветитьIncredible vid!
ОтветитьGreat videos...all of them. :)
ОтветитьTruly Awesome
ОтветитьThanks Mariya. Am new to python coding and this video really helped me learn LIST COMPREHENSIONS.
Just as a small input for all, regarding the example "MyNameIsMaria", we can use .strip() to remove spaces near double quotes.
my_string_ = ("").join([' ' +i if i.isupper() else i for i in my_string]).strip()
Please try and correct me if am worng.
Thank you.
👍
ОтветитьLiked the way you explained it step by step and in depth
ОтветитьSuper_Bits or Beats_By_Dre 😊
ОтветитьOf note, IF before the FOR condition should be used if there's an ELSE statement following, however an IF condition alone, should be added before the FOR statement.
ОтветитьHi Mariya... Recommend to me a python book
Ответитьvery useful
ОтветитьCan I just say that it's so refreshing to have a girl presenter on coding? 😆 Thank you!
ОтветитьCool
ОтветитьHi Mariya
ОтветитьHi Mariya! Thank you for making the list comprehension tutorial. I was struggling with the concept.
Ответитьit's tricky but works !!!!!! Thanks
ОтветитьPlease what if I need a special assistant, can't we chat on WhatsApp?
ОтветитьHai Mariya 🖖
ОтветитьI think,
you are very good, you are very beautiful and you are full of advice ... what else?
Awesome :-)
Thanks!
ОтветитьThanks for tutorial ❤
Ответить❤
ОтветитьThank you - you're awesome at teaching.
ОтветитьHi Maria Maria ❤
ОтветитьThanks Mariya, great video, easy to follow and apply.
ОтветитьTo bad you do not teach Python for absolute beginners. You are the worlds best teacher as to advanced programming.
Ответитьwtf is going on in these commends?? I didn't know programmers are that ""stringy"" I liked the video. :)
Ответить