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

Finding someone who doesn''t use some aspect of Microsoft Office on a daily basis is difficult. Whether it is Outlook for email,Word for creating and editing documents,or Excel f

Question 1 Explain the functional units of a basic computer with a neat diagram Question 2 Explain how you can get 1's complement of a given binary number? Also explain 1'

What is CAI? Explain its pitfalls

RANDOM ACCESS MEMORY (RAM): The RAM-type memory will allow data to be written into it, as well as read from it. With very few exceptions, RAMS lose their contents when the powe

Problem - programming language: A Problem is to carry out a particular task. For solving the problem, some input has to be given to the system. The system will process or mani

QUESTION 1 Write short notes on controlled vocabulary indexing. QUESTION 2 (a) List five types of abstracts. (b) Describe four types of abstracts. QUESTION 3

each of the following functions has the form f(x ) = (ax+b) mod n. assume that each function has type N base n arrow N base n, so that we can think of f as a cipher for an alphabet

convert the following in to binary 108

how to start ms power point