Python Tuples , Basic Computer Science

A tuple is one more series data type that is like to the list. A tuple consists of a number of values divided by commas. Not like lists, though, tuples are enclosed inside parentheses.
The major differences among lists and tuples are: Lists are together with this in brackets ( [ ] ), and their elements and size can be distorted, while tuples are enclosed in parentheses ( ( ) ) and cannot be updated. Tuples can be consideration of as read-only lists. Python Dictionary:
Python’s vocabularies are hash table type. They work similar to associative arrays or hashes found in Perl and are made up of key-value pairs.
Keys can be approximately any Python type, but are typically numbers or strings. Values, alternatively, can be any arbitrary Python object.
Dictionaries are surrounded by curly braces ({ }) and values can be allocated and accessed using square braces ( [] ).
Dictionaries have no concept of regulate among elements. It is incorrect to say that the elements are "out of order"; they are just unordered.
Posted Date: 5/5/2012 3:55:28 AM | Location : United States







Related Discussions:- Python Tuples , Assignment Help, Ask Question on Python Tuples , Get Answer, Expert's Help, Python Tuples Discussions

Write discussion on Python Tuples
Your posts are moderated
Related Questions
what is computer? explaine the block diagram of a general purpose digital computer.

Identify three factors to consider in determining the competitive value of information technology. Justify the selected factors. Of the factors selected, determine if each fact

create a flowchart showing average score for the 3 quizzes assume that there are 3 sections each having 5 students the only valid number to be entered is 1-100 for the quizzes shou

#questionexplain strategic mis categories in detail with illustration..

Question 1 Convert the following hexadecimal numbers to base 2 (D73)16 (A21)16 Question 2 Convert the following binary numbers to base 16 (11001011)2 (11

socket programming

Previous to we can perform writing to the disk it is essential to define the data transfer region using for this end the 1AH function of the 21H interruption. The 1AH function does

what is rom


The instructions of the logic functions are: and not, or and xor. These act on the bits of their operators. To make sure the result of the operations we revolve to the cmp and test