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
#questionConsider the one-time pad encryption scheme to encrypt a 1-bit message m, and assume m is chosen with uniform distribution from message space M={0,1}. Let E1 be the event

Problem 1 What is the significance of the keyword 'extern' in a function declaration? Explanation of significance of Keyword 'extern' in function declaration Probl

HARDWARE BASICS In the foregoing section of this Unit, an attempt has been made to explain to you the historic perspective relating to the development of computer from its ear

Question 1 What is a desktop? Explain the Windows XP desktop? Question 2 How does a flash drive work? Question 3 Write the procedure for creating Macro Question 4 E

Input Devices: i)  Keyboard is the most common form of input devices. It was originally designed in the last century. Since then, only minor improvements have taken place in k


Search strategies are evaluated along four main dimensions. Name those dimensions and briefly describe each one

what is rom

hello do have c programming experts

WAP TO ACCEPT MARKS OF THREE SUBJECT FOR STUDENT & CALCULATE TOTAL MARKS AND PERCENTAGE