4.Tuples
A tuple is similar to a list. The difference between the two is that we cannot change the elements of a tuple once it is assigned whereas in a list, elements can be changed. A tuple is created by placing all the items (elements) inside a parentheses ()
Empty tuples are constructed by an empty pair of parentheses; a tuple with one item is constructed by following a value with a comma (it is not sufficient to enclose a single value in parentheses)
CODE:
OUTPUT:
5 .Dictionary
Python dictionary is an unordered set of key:value pairs , with the requirement that the keys are unique (within one dictionary). A pair of braces creates an empty dictionary: {}.Dictionary have no concept of order among elements.
Keys are unique within a dictionary while values may not be.The values Continue reading
Tom Nolle's surveys point to three primary factors, and a possible solution.
The post Worth Reading: Social Media for Social Influence appeared first on 'net work.
Yes, it's hard and expensive, James Hamilton points out in his keynote.