Комментарии:
So clear explanation thank you
Ответитьi am confused if the methods that we use for list can be applied into the tuples..i print(dir)) to figure out but i ddnt..For example ma,reduuce,filter can be applied>?
Ответитьwhat is the correct pronounciation of "TUPLE"?? :(
ОтветитьBro I think you are fastest type writer
ОтветитьRound brackets LMAO almost lost it when he said that hahaha.
ОтветитьI'm no Python expert, but I've been using C for a long time and therefore I'm familiar with how much different data types requires space and how fast can they perform.
Speaking from this perspective, I would highly recommend Tuples to be used as arrays with a fixed size. Lists are way easier to handle if you have manipulations and therefore a dynamic size, However put in mind that it comes with a cost of performance and Memory.
Why would someone go for a tuple ? Simple enough, to save memory.
ive never enjoyed watching tutorials like this wow. The videos are short and interesting. i wana get lazy but i cant. i just keep watching
ОтветитьHi sentdex, I just want to take a moment to thank you for the amazing content. Just one thing, your commentary is a little faint (it could just be me though). Thanks again and keep up the great work :)
ОтветитьDid i just heard firsteth element?
Ответитьin your tutorial ...the ty of x,y are int not tuple ............correct that
Ответить1st*
ОтветитьHow can i print the number of items in a list🤔🤔 please any one could help😣 I will really appreciate it😢
ОтветитьDear Sir Can You Explain User Define iteration (in Class)
I read Various Of Book But I don't Know Why I can't Understand iteration
Sir , I am Waiting Your Answer as well as Vedio
This is EXACTLY what I needed. Thank you for taking the time to make it and helping people like me out.
ОтветитьAwesome explanation thanks!
ОтветитьGreat tutorial.
ОтветитьClearly explained! Thanks... U type very fast. Any tips to improve my typing speed??
ОтветитьMassive video bro it helped me to understand the concept soon
Ответитьthis channel is better than Siraj Raval's
Ответитьhe giggled, i dont get that
ОтветитьHow is Memory allocated in both tuple and list?
Ответитьholy shit Ed Snowden!!!!!!!!
Ответить/tts minaminaminaminaminaminaminaminaminaminaminamina
ОтветитьHow can I make a list that categorizes online poker players into 4 categories: ( tight, loose, aggressive and passive), and when i type their username it will show what category they are placed in?
ОтветитьI genuinely appreciate that you took the time to make these videos and I'm sure they're very helpful, but the fact that you hit your enter key like it just murdered your family makes your videos unwatchable. I mean that in the most constructive way possible.
ОтветитьYour pronunciation of tuple is driving me nuts... Lol
ОтветитьI love you man, God bless
ОтветитьYou are the only who is my Inspiration for python ! That's called as passion. Hats off !
ОтветитьWill it not be x = exampleFunc()? because in the case of x, y = exampleFunc(), it will declare simple integer variables to hold the returned values. right? I ran to confirm it and it is working the way I am suggesting.
ОтветитьFirst of all, I love your videos!
The thing is, I can't understand the mutableness of lists and tuples. You said lists are mutable and tuples aren't. What exactly does 'changing lists or tuples' means?
What are the direct 2 methods to construct a tuple that has only a single item? How many ways are there to construct a list with a single item?
ОтветитьWhat are the direct 2 methods to construct a tuple that has only a single item in pyton
Ответитьyou know brother :)
I started watching your videos and I cannot stop :D
I really appreciate your efforts and I really thank you.
In my religion we say something better than thanking which is "Jazakom Allah Khayran"
So I do both I thank you and I say "Jazakom Allah Khayran = I ask Allah to give you the best always ....Ameen"
All my respect and regards
I love your videos, man. The addition of the video box was really nice. This is 2014 so I'm sure you've made even more improvements since then. I'm developing a game for fun and you're helping me further my understanding of the Python language. What playlist would you recommend I begin watching after I learn more of the basics? I saw one using PyGame, but I'll probably end up watching a bunch of others just to make sure I know the core language in-and-out.
ОтветитьHoly shit, I just had a "OH FUCK I GOT IT" moment. Thanks! :D:D
ОтветитьI am much more proficient in C++ but am taking a crack at Python and I am liking it a lot.
I know this video is old but I have a question to ask you.
I have a little practice program I am trying to do. I am trying to create a function that adds 'and' to the -1 spot of a list any list that is passed to it.
I know what I have to do but I do not know how to do it.
With the insert I need to insert 'and' at the element -1 so something like modList.insert(-1,x)
Where the x is though I am trying to ADD to whatever is in the -1 spot and add 'and' before it but without the ' '.
This is what I have so far:
def modList(someList):
someList.insert(-1, 'and')
print(someList)
spam = ['Dog','Cat','Bat','Mouse']
modList(spam)
OUTPUT: ['Dog', 'Cat', 'Bat', 'and', 'Mouse']
Desired OUTPUT: ['Dog, Cat, Bat, and Mouse']
Any help is much appreciated...
is x,y = 'John', 9 a tuple?
ОтветитьGreat tut!Always keep up the good job!thanks a lot
ОтветитьBest tutorials ever. Not sure why these videos even have dislikes on them.
Ответитьwow you sound like Roman Atwood. :D
ОтветитьHow do you get the selected index and selected item in a listbox in tkinter?
ОтветитьTuples come from more functional languages and are for example used as arguments or return values without the need to create a full class/object (should there even be objects).And usually tuples are collections that have different types of items ("heterogeneous") whereas lists are composed of items of the same type ("homogeneous"). There are even programming languages that require lists to always have the same item type. Python doesn't seem to.A line of a CSV file read in as a tuple makes sense or as we have seen sockets use (host, port) pairs. Or like using a tuple for a vector (x, y) because x has no meaning without y and vice-versa, there is an "intimate" relationship (same argument could be made for host, port). F# has guidance for this e. g. regarding function parameters.
ОтветитьVery helpful, Thanks for the vid x
Ответить"Round brackets" heheheh :-)
ОтветитьIt would seem the main purpose of a tuple is protecting its data integrity throughout the execution of the script. (January, February, March, ...)
Ответить