دوره Python Data Structures ، فصل 6 : Chapter Ten- Tuples
دربارهی این فصل:
Tuples are our third and final basic Python data structure. Tuples are a simple version of lists. We often use tuples in conjunction with dictionaries to accomplish multi-step tasks like sorting or looping through all of the data in a dictionary.
این دوره شامل 6 فصل زیر است:
And the sum total of this is that tuples are sort of a more efficient version of lists that you can't modify. And the for loop basically creates an iteration variable and then bounces through the things that are in a tuple. But that's part of the efficiency of tuples is that they're not mutable and that allows them to be stored more densely than lists.
And now, in this little bit of lesson, we're going to talk about some tuples, and we're going to create a list of the most common words, and find out how to sort a dictionary by the values instead of by the key. And then goes through the words and does the idiom of using dictionary get to maintain the counters and we print it out at the very end. Now, instead of printing this out, we are going to, let me do this in a couple of steps, make a new tuple and I'll just call it newt equals (v,k).
And another of the Coursera Internet History Technology and Security office hours. We are here in Puebla, Mexico, and I'd like you to meet some of your fellow students in the class. Tomorrow night, I think we're going to be in Mexico City, and I hope some students show up there, as well.
And if you look at other data representations like the property lists that were used at, at NeXT and then later at Apple, except for a couple of cosmetic changes, it's the JSON notation as well. And we'd developed a platform for doing applications which could be delivered through unmodified web browsers, what today is called AJAX. But we produced some brilliant demonstrations and we were starting to make some progress in trying to convince, you know, potential customers that they should adopt the style of application and development.
مشارکت کنندگان در این صفحه
تا کنون فردی در بازسازی این صفحه مشارکت نداشته است.
🖊 شما نیز میتوانید برای مشارکت در ترجمهی این صفحه یا اصلاح متن انگلیسی، به این لینک مراجعه بفرمایید.