Python 101: Learn These MUST KNOW List Features

  Рет қаралды 92,056

Tech With Tim

Tech With Tim

Күн бұрын

Пікірлер: 113
@TechWithTim
@TechWithTim Жыл бұрын
To learn programming and Python - check out Datacamp! 💻 Learn Python - datacamp.pxf.io/Vmze3M 💻 Learn Programming - datacamp.pxf.io/B0mJoW
@watsonmooya
@watsonmooya Жыл бұрын
Hey Tim...can you please create for me a video on how to deploy your python flask app on python anywhere.
@jk377y
@jk377y Жыл бұрын
I learned way more than expected in such a short amount of time. Just started Python in my CS program and was looking for extra guidance online to supplement schoolwork. Subbing now! Thanks.
@sulochandhungel
@sulochandhungel Жыл бұрын
Excellent video about lists. Hoping to see similar video for sets, dictionaries and tuples. Thank you!
@purvislewies3118
@purvislewies3118 Жыл бұрын
...my brother you are my hero in this business...
@MatrixAbuz17
@MatrixAbuz17 Жыл бұрын
Great video for beginners. Should make a video on specific libraries that are handy for specific data types aimed for more intermediate users too (e.g., built-in 'slice', or 'insort' from bisect for list types, 'nested_lookup' from nested_lookup for dictionaries)
@Cryp2nalist
@Cryp2nalist Жыл бұрын
This is a very well-taught tutorial as usual, engaging and easy to understand. Thank you.
@kapibara2440
@kapibara2440 Жыл бұрын
Super video Tim :) I was secretely wishing you would show the shuffle method in a list. It is really cool.
@ShaneKluskowski716
@ShaneKluskowski716 Жыл бұрын
I got [999, 8]. I had to guess what the isinstance function did in the end. Assuming it filters out anything that isn't and integer, otherwise it would be [999, 8, 'a',' 'b', 'c'] (I think). Great video.
@JSDudeca
@JSDudeca Жыл бұрын
I thought I knew it all about lists but I got a couple new things with this. Definitely will be sending this to all the N00bs.
@danielcrigan1301
@danielcrigan1301 Жыл бұрын
Great content Tim! Thank you for your effort in creating this type of content for us! It's a good reference video to refresh the knowledge on the lists.
@et.sachin
@et.sachin Жыл бұрын
Great video Tim! Please do the same for other data structures.
@Raiden_Amani
@Raiden_Amani Жыл бұрын
Thank you so much, even when one becomes very well versed in programming, there are always a few tiny things that one can miss out that may hinder performance and usefulness of a langauge.
@JonibekHamroqulov-bf8gp
@JonibekHamroqulov-bf8gp Жыл бұрын
Very useful video. Please make a video about other data types (tuple, set, dictionary)
@AIWorld-o7v
@AIWorld-o7v Жыл бұрын
i am your new scriber your lecture is awesome wonderful keep it up
@paulthomas1052
@paulthomas1052 Жыл бұрын
Thanks - really useful breakdown of List functionality.
@joshuaikem4461
@joshuaikem4461 Жыл бұрын
@TechWithTim ......Hello Tim!...Thanks for video you've made i appreciate so much.......Does the Coursecareer programme apply to every country......I am a Nigerian in Africa and all i can here is North America related settings
@Taher_M
@Taher_M Жыл бұрын
this guy: "Please learn" Meanwhile... My teacher: "You learn or don't learn, your choice"
@Syed-A-Rizvi
@Syed-A-Rizvi 8 ай бұрын
thank you bhai!!!!👍
@samoylov1973
@samoylov1973 Жыл бұрын
Thank you! Waiting for more such content. How about "Sorting lists"? For LIST construction: one can use unpacking like this: >>> lst = [*range(11)] And for immutability of tuples - it is a disputable theme. Say we have a tuple: >>> tpl = 1, 2, 3 >>> tpl += 4, >>> print(tpl) # (1, 2, 3, 4) # Yeap, id(tpl) in these cases will be different. These are different objects. But by construction looks like we can modify tuples )). Another example: >>> tpl_lst = 1, 2, 3, [4, 5] # check for it's id -- id(tpl_lst) >>> tpl_lst[3].append(6) >>> print(tpl_lst) # check for it's id again # (1, 2, 3, [4, 5, 6]) # and in this case ids of tpl_lst will be the same. It will be the same object to your computer.
@KEANMentor
@KEANMentor Жыл бұрын
I don't think it is disputable, tuples are still immutable. Using the += operator just creates a totally new object in the background. I admit the second is strange indeed, the answer is that mutable object stored/pass by reference in Python. (You can use copy() and deepcopy() to break that reference if you need to.)
@Canda-fh4xc
@Canda-fh4xc Жыл бұрын
Do you have a video about how to find out if the checkbox is checked or not using Flask? (The IDs and the Values are dynamic from the database) Thank you
@Sinke_100
@Sinke_100 Жыл бұрын
So detailed and well explained 🐍
@DanielBinoy-j7z
@DanielBinoy-j7z Жыл бұрын
Can you make a video about python library that you should know beginner please
@Ebtesambehnam
@Ebtesambehnam Жыл бұрын
hey Tim, thanks for you all videos you are so inspiring for me im learning django online, but i get tired of it so soon, its like a loop for me getting tired, break, starting again, getting tired its not enjoyable for me but i have to learn it please give me advice , what can i do to finish my course
@wellz2000
@wellz2000 Жыл бұрын
Bro, I love your videos a lot, you teach everything well, I wish I was in the position to buy your course, but am financially disadvantages now, however, in the mean time, is there any chance you could share the link to your iconic soundtrack that plays at the end of the video? It really helps me focus more when am practicing code, am a beginner in software engineering, and am learning things off of youtube videos like yours, and progressing one step at a time.
@koekienator
@koekienator Жыл бұрын
Nice 101! Can you do the same for dictionaries? Dict comprehension feels a bit like 4d chess compare to list comprehension.
@joshuaikem4461
@joshuaikem4461 Жыл бұрын
Hello Tim!....Does the Coursecareer programme apply to every country......I am a Nigerian in Africa and all i can here is North America related settings
@Dubai_life_
@Dubai_life_ Жыл бұрын
Thank you a lot
@kevlon1996
@kevlon1996 Жыл бұрын
One thing that all these tutorials lack is the fact that a LIST in Python is equivalent to an ARRAY in most other coding languages.
@nitetoad
@nitetoad Жыл бұрын
Okay here is my attempt! n1 is list a of even numbers, n2 is a list of odd numbers. on line 4, you are making a list of those even and odd numbers as zipped. on line 6, you are collecting the numbers from this list starting from index 0 and going backwards by -1 step. Reversed order? on line 8, you are the odd numbers in reversed order to the end of the zipped_2 list on line 10, you are replacing a number with 999 at position -5 on line 12, you are replacing three numbers with a, b, c from position 1, 2, 3 on line 14, you are sorting the n1 list in reverse order if they are a number they will be sorted first. finally printing the results
@marco.nascimento
@marco.nascimento Жыл бұрын
Great video!
@ni_r4970
@ni_r4970 Жыл бұрын
This was great but you did not cover lambda functions showed in the first slide! As a total beginner with python for research needs those lambda functions are much less transparent than other things. Thanks for list comprehension though, very effective brief explanation!
@munivoltarc
@munivoltarc Жыл бұрын
can you do comprehensive pandas on stock market data many are eagerly waiting to see this kind of video
@shaikusman536
@shaikusman536 Жыл бұрын
Good ....cou;ld be better if you can tell the practicle use cases of concepts........thanks...from INDIA
@thabangraykutumane6639
@thabangraykutumane6639 Жыл бұрын
mind doing while loops and for loops please
@ByThisShallAllMenKnow
@ByThisShallAllMenKnow Жыл бұрын
Thank you very much for this. Knowing that setting a list equal to another is by reference allows me to link my understanding of C pointers to Python now. This had confused me for quite some time.
@growth_mindset_on
@growth_mindset_on Жыл бұрын
Just Great!
@tradeyourlifestyle2604
@tradeyourlifestyle2604 Жыл бұрын
Can you explain more on career services in Course Careers?
@48_subhambanerjee22
@48_subhambanerjee22 Жыл бұрын
For those who is asking which ide is that.. its just vscode...
@SuXiiColdHand
@SuXiiColdHand Жыл бұрын
Hi, i didnt get what the problem is with the list being a default parameter. i am very new to pyhton and coding in general. did i get it right that, if you change the list in the function, that everytime you call the function, it executes the change because... well its in the function so it does what its supposed to do, right?
@SAsquirtle
@SAsquirtle Жыл бұрын
PLEASE MAKE ONE FOR DICTS
@faisalhussain1045
@faisalhussain1045 Жыл бұрын
What is the code editor that you are using ?
@mohammedmizankhan7290
@mohammedmizankhan7290 Жыл бұрын
Pycharm
@ImTheReal
@ImTheReal Жыл бұрын
Subscribed
@Zancb
@Zancb Жыл бұрын
Constructive criticism - please don't use "LST" (lowercase) as a variable for a list. 1. "lst" in monospace looks like "1st" - the lowercase L looks like a 1. 2. Try to avoid using variables that are so close to a keyword. 3. Tell your audience not to use keywords as a variable, or else Python go boom. Thanks, Tim! Always love your content.
@Zancb
@Zancb Жыл бұрын
And to provide a solution, try to use something like "my_list1" and "my_list2". Semantically it infers that the variable is defined and owned by "you" in the memory space.
@tom19_06
@tom19_06 Жыл бұрын
Awesome tutorial!
@johncastillo6574
@johncastillo6574 Жыл бұрын
I’m embarrassed to say but this is more advanced than my capabilities. Where does a complete beginner start?
@TheDhac
@TheDhac Жыл бұрын
Is this some of SQL built into python?
@Moses_42
@Moses_42 Жыл бұрын
Hey Tim is there any difference between your Software Dev course in Algo Expert and Course Careers?
@TechWithTim
@TechWithTim Жыл бұрын
Yes this is much more in depth
@Moses_42
@Moses_42 Жыл бұрын
Thank you @@TechWithTim
@4783rt9
@4783rt9 Жыл бұрын
Great
@danieljoaquinsegoviacorona1734
@danieljoaquinsegoviacorona1734 Жыл бұрын
thank you sir!
@CodeWithDee
@CodeWithDee Жыл бұрын
I'm in Ghana. Can I also take the course and get a job after graduation?
@rtr195807
@rtr195807 Жыл бұрын
Only thanks!
@blueocean5388
@blueocean5388 Жыл бұрын
Hey bro. Can you please pronounce what your type in the screen? I mean when you do the parentheses or quotes? I am visually disabled and I’m trying to keep up with you, but I get lost. Thank you very much.👍🏾
@ivannaumovets2066
@ivannaumovets2066 Жыл бұрын
Thank you, one more repeat with your video makes memory stronger.
@reqssss
@reqssss Ай бұрын
What keyboard is that
@henryvasquez1814
@henryvasquez1814 Жыл бұрын
6:22
@datpham2482
@datpham2482 Жыл бұрын
anyone know how to justify the TERMINAL window to just show only the result rather than the whole mixture of stuff like long location of the file ?
@avalagum7957
@avalagum7957 Жыл бұрын
Is there any way to force a data type when we declare a collection in Python? i.e. if I declare a list, I have to tell what data type that the list elements are of.
@justsayin...1158
@justsayin...1158 Жыл бұрын
Yes, you can do so using the array module from the standard library. Although arrays can only store numeric values and characters, so they aren't the exact same.
@garrettsmith315
@garrettsmith315 Жыл бұрын
Awesome, iterators and generators next?
@THARUNGANAPATHI
@THARUNGANAPATHI Жыл бұрын
def func(lst = [1,2]): lst.append(100) return lst lst1 = func() print (lst1) lst2 = func() print (lst2) lst3 = func() print (lst3) Result: [1, 2, 100] [1, 2, 100, 100] [1, 2, 100, 100, 100] [Finished in 0.2s] This is my result. But how you got like the following. May be I am wrong. [1, 2, 100, 100, 100] [1, 2, 100, 100, 100] [1, 2, 100, 100, 100] Correct me if i am wrong
@varunsaproo4120
@varunsaproo4120 Жыл бұрын
Can anyone explain lst[-5:-5] = [999]?
@vio-noob_6737
@vio-noob_6737 Жыл бұрын
Am a little late, but when assigning values using slice notation they have to be an iterable, hence the brackets around the 999. If you don't have the brackets it'll throw you a TypeError. Since it is using the slice -5:-5, you are assigning to the -5th index. Since it is only one index, you can just do the same operation as lst[-5] = 999 (lst[0] = 999 also works since index 0 is the same as -5 for this example)
@relytheone853
@relytheone853 Жыл бұрын
How can I actually get a job by programming in Python?
@AbdullahMubeenA.M
@AbdullahMubeenA.M Жыл бұрын
how to remember all of these?
@dakoderii4221
@dakoderii4221 Жыл бұрын
.snap() break list in half, return halves in a tuple .crackle() remove every other item, return new list of those items .pop() remove last item and return
@ugib8377
@ugib8377 Жыл бұрын
What color scheme are you using in VScode? I love the high contrast stuff, and these color combos look better than my current. Thanks for the video too. I learned quite a bit!
@elatedbento
@elatedbento Жыл бұрын
This is your typical Monokai color scheme. There are variations on it. I believe you can find it as an extension.
@ugib8377
@ugib8377 Жыл бұрын
@@elatedbento much thanks. I'll check it out!
@bentaylor25
@bentaylor25 Жыл бұрын
I got [8, 0, 'c', 'b', 'a'] - not 100% sure though..
@bentaylor25
@bentaylor25 Жыл бұрын
Assuming I typed it right it's [999, 8, 6, 'c', 'b', 'a'] - and here's hoping that none of us ever need to work with code like this :)
@LAMIDI131
@LAMIDI131 Жыл бұрын
Can I get an English translation
@RexMgwezane
@RexMgwezane Жыл бұрын
First minute gang
@ericbroun4657
@ericbroun4657 Жыл бұрын
❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤
@CTimmerman
@CTimmerman Жыл бұрын
Alphabet doesn't know the difference between "tee" and "dee", so the captions say "LSD" instead of "LST".
@UE5tutorial
@UE5tutorial Жыл бұрын
i love you vids please run my code on your one of your vidios import time a1 = 1 time.sleep(a1) print(a1) print("it work's") it's not that good but it dose work im real new to python and made it myself! :)
@borneoviral6379
@borneoviral6379 Жыл бұрын
what is the _ where can I learn more about it
@Alibaloch2013
@Alibaloch2013 Жыл бұрын
Hello from user 1
@jorgeraymason
@jorgeraymason Жыл бұрын
Completely off topic, but I wonder if Tim was a bully in high school.
@Alibaloch2013
@Alibaloch2013 Жыл бұрын
Hello, world
@Alibaloch2013
@Alibaloch2013 Жыл бұрын
xyz...
@mrcodercodes7684
@mrcodercodes7684 Жыл бұрын
Og here , Idk what has happen to your channel, Now there is definitely decrease in engagement . You should try going back to old ways . I used to watch your channel for Discord bot and flask app and what not . Try Making a series on some trending thing again . Like I would love a series where you make a evolution simulator or a journal app which after 20-30 days writes a AI generated book on you and what your wrote in journal .You get the gist . Make a series , it will keep the engagement and we get old tim back :)
@altaccount3712
@altaccount3712 Жыл бұрын
Ya , Even i agree . Cm'on tim make some new series .
@yapnog603
@yapnog603 Жыл бұрын
I got a job using this channel as one of my main sources of materials/help and now I'm busy with life 😢😅
@yohanpablos6861
@yohanpablos6861 Жыл бұрын
Agree, I don't enjoy this content anymore
@TheMoonManExperience
@TheMoonManExperience Жыл бұрын
I would say his new series is the “ Introduction to Software Development “ as it’s a perfect way for anyone new like myself to enroll in the possibility of getting a job at the end. He’s got plenty of old content for anyone new to go back & watch. He did mention his latest & greatest work was the course he created. Which lets me know he put endless hours into creating it. The newest releases on his channel are amazing in my opinion when you factor in how much work goes into making KZbin videos along with having a day job & other side projects. Just my two cents LoL I’ve only been around for two months but I can tell you that building up a KZbin channel this large is not easy. The fact he has been able to teach so many this one language but do it a millions times in a millions different ways is beyond impressive.
@mrcodercodes7684
@mrcodercodes7684 Жыл бұрын
​@@TheMoonManExperienceyes , I respect him for that . Even I would credit him for my programming journey. Just wanted to give some feedback :)
@PatrickSteil
@PatrickSteil Жыл бұрын
My guess is that it prints a list. Lol. No clue.
@EvilCherry3
@EvilCherry3 Жыл бұрын
8:00 Does this ever serve a purpose ? It looks like a useless feature. If i already have a reference to an object i don't see any case where i will need a different name to call that same reference ever. It looks more annoying than useful.
@eddo4life
@eddo4life Жыл бұрын
Imagine that you need to remove elements from different lists, such as employee and student lists. Each list contains multiple elements represented as dictionaries, either for students or employees. When you want to delete an employee, you might consider creating a method like 'remove_employee(id)' that searches for the specific employee and removes it from the employee list instance. Similarly, for removing a student, you would need to create another function, 'remove_student(id),' which follows the same approach. However, this approach is not ideal. Instead, you can streamline the process by using a single function that accepts the list instance and the ID as parameters. Let's call this function 'remove(lst, id).' Now, when you want to delete an employee, simply call 'remove' with the employee list and the employee's ID. You can do the same for students or any other entity with the same data structure, ensuring a more efficient and maintainable solution.
@EvilCherry3
@EvilCherry3 Жыл бұрын
Thank you a lot. :) @@eddo4life I will have to test this out myself in order to fully understand how it works, but i think i vaguely get the idea already. :)
@ahmedyamany5065
@ahmedyamany5065 Жыл бұрын
Free palastine
@bobtheoutbuilder8552
@bobtheoutbuilder8552 Жыл бұрын
I got [999, 8, 'c', 'b', 'a'], Idk where my 6 went haha.
@danieljoaquinsegoviacorona1734
@danieljoaquinsegoviacorona1734 Жыл бұрын
it wasn't the syntax, for me, it was the zip thing, and the content of the zipped [ :: -1 ] hahaha shenanigans
@danieljoaquinsegoviacorona1734
@danieljoaquinsegoviacorona1734 Жыл бұрын
lol, imagine if they did placed -0 to call the last index of the array lmao
@Alibaloch2013
@Alibaloch2013 Жыл бұрын
Hello from user 1
@Alibaloch2013
@Alibaloch2013 Жыл бұрын
Hello from user 1
@Alibaloch2013
@Alibaloch2013 Жыл бұрын
Hello from user 1
AsyncIO, await, and async - Concurrency in Python
9:12
Socratica
Рет қаралды 121 М.
Flask App folder structure                                         what to store where?
0:17
Web_Technologies By LSP
Рет қаралды 601
ВЛОГ ДИАНА В ТУРЦИИ
1:31:22
Lady Diana VLOG
Рет қаралды 1,2 МЛН
Маусымашар-2023 / Гала-концерт / АТУ қоштасу
1:27:35
Jaidarman OFFICIAL / JCI
Рет қаралды 390 М.
Хаги Ваги говорит разными голосами
0:22
Фани Хани
Рет қаралды 2,2 МЛН
10 Python Concepts You NEED To Know in 2025
24:08
Tech With Tim
Рет қаралды 29 М.
Python 101: Learn These 5 Must-Know HIDDEN Features
16:38
Tech With Tim
Рет қаралды 70 М.
10 Python Comprehensions You SHOULD Be Using
21:35
Tech With Tim
Рет қаралды 168 М.
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 825 М.
Please Master These 10 Python Functions…
22:17
Tech With Tim
Рет қаралды 270 М.
List Comprehension - BEST Python feature !!! Fast and Efficient
14:51
Python Simplified
Рет қаралды 201 М.
10 Python Shortcuts You Need To Know
27:27
Tech With Tim
Рет қаралды 298 М.
Python lists, sets, and tuples explained 🍍
15:06
Bro Code
Рет қаралды 360 М.
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 345 М.
10 Important Python Concepts In 20 Minutes
18:49
Indently
Рет қаралды 485 М.
ВЛОГ ДИАНА В ТУРЦИИ
1:31:22
Lady Diana VLOG
Рет қаралды 1,2 МЛН