Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> List = [0,1,2,3]
>>> List[0]
0
>>> x = ["a", "b" , "c"]
>>> x[0]
'a'
>>> x[2]
'c'
>>> x = x + "d"

Traceback (most recent call last):
  File "<pyshell#5>", line 1, in <module>
    x = x + "d"
TypeError: can only concatenate list (not "str") to list
>>> x = x + ["d"]
>>> x
['a', 'b', 'c', 'd']
>>> x = x +[2]
>>> x
['a', 'b', 'c', 'd', 2]
>>> x[4]
2
>>> x[-1]
2
>>> x[-5]
'a'
>>> x [0]
'a'
>>> y = [1,2,3,[4,5,6],"f"]
>>> y
[1, 2, 3, [4, 5, 6], 'f']
>>> y[3]
[4, 5, 6]
>>> y[3][0]
4
>>> y[3][-1]
6
>>> type(y)
<type 'list'>
>>> type(y[0])
<type 'int'>
>>> type(y[3])
<type 'list'>
>>> y
[1, 2, 3, [4, 5, 6], 'f']
>>> y[-1] = "A+"
>>> y
[1, 2, 3, [4, 5, 6], 'A+']
>>> y[3][1] = 1234
>>> y
[1, 2, 3, [4, 1234, 6], 'A+']
>>> y[-2]
[4, 1234, 6]
>>> y[-2][1]
1234
>>> x
['a', 'b', 'c', 'd', 2]
>>> x.remove(2)
>>> x
['a', 'b', 'c', 'd']
>>> help(sort)

Traceback (most recent call last):
  File "<pyshell#32>", line 1, in <module>
    help(sort)
NameError: name 'sort' is not defined
>>> help(sort()
     )

Traceback (most recent call last):
  File "<pyshell#34>", line 1, in <module>
    help(sort()
NameError: name 'sort' is not defined
>>> help()

Welcome to Python 2.7!  This is the online help utility.

If this is your first time using Python, you should definitely check out
the tutorial on the Internet at http://docs.python.org/tutorial/.

Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules.  To quit this help utility and
return to the interpreter, just type "quit".

To get a list of available modules, keywords, or topics, type "modules",
"keywords", or "topics".  Each module also comes with a one-line summary
of what it does; to list the modules whose summaries contain a given word
such as "spam", type "modules spam".

help> sort
no Python documentation found for 'sort'

help> exit
Help on Quitter in module site object:

exit = class Quitter(__builtin__.object)
 |  Methods defined here:
 |  
 |  __call__(self, code=None)
 |  
 |  __init__(self, name)
 |  
 |  __repr__(self)
 |  
 |  ----------------------------------------------------------------------
 |  Data descriptors defined here:
 |  
 |  __dict__
 |      dictionary for instance variables (if defined)
 |  
 |  __weakref__
 |      list of weak references to the object (if defined)

help> exit()
no Python documentation found for 'exit()'

help> 

You are now leaving help and returning to the Python interpreter.
If you want to ask for help on a particular object directly from the
interpreter, you can type "help(object)".  Executing "help('string')"
has the same effect as typing a particular string at the help> prompt.
>>> 
KeyboardInterrupt
>>> 
>>> x
['a', 'b', 'c', 'd']
>>> x.sort(reverse=True)
>>> x
['d', 'c', 'b', 'a']
>>> x.sort()
>>> x
['a', 'b', 'c', 'd']
>>> help(.sort)
SyntaxError: invalid syntax
>>> x
['a', 'b', 'c', 'd']
>>> r = [1,2,4,2,3]
>>> r.remove(2)
>>> r
[1, 4, 2, 3]
>>> r.remove(2)
>>> 
>>> r
[1, 4, 3]
>>> r.insert(1,2)
>>> r
[1, 2, 4, 3]
>>> r.insert(3,2)
>>> 
>>> r
[1, 2, 4, 2, 3]
>>> r.pop(3)
2
>>> r
[1, 2, 4, 3]
>>> a = [1,2,3,"a","b"]
>>> max(a)
'b'
>>> a = [1,2,3,"a","b","B"]
>>> 
>>> max(a)
'b'
>>> ord("b")
98
>>> ord("B")
66
>>> a = []
>>> a
[]
>>> a= [1123456 , "B"]
>>> max(a)
'B'
>>> y
[1, 2, 3, [4, 1234, 6], 'A+']
>>> len(y)
5
>>> y[len(y)]

Traceback (most recent call last):
  File "<pyshell#72>", line 1, in <module>
    y[len(y)]
IndexError: list index out of range
>>> y[len(y)-1]
'A+'
>>> len(range(3))
3
>>> len(range(1234))
1234
>>> range(10,1,-2)
[10, 8, 6, 4, 2]
>>> range(2,11,2).reverse
<built-in method reverse of list object at 0x020BAE68>
>>> reverse(range(2,11,2))

Traceback (most recent call last):
  File "<pyshell#78>", line 1, in <module>
    reverse(range(2,11,2))
NameError: name 'reverse' is not defined
>>> r= range(2,11,2)
>>> r.reverse(
	)
>>> 
>>> r
[10, 8, 6, 4, 2]
>>> range(2,11,2).reverse()
>>> print range(2,11,2).reverse()
None
>>> print (range(2,11,2)).reverse()
None
>>> for i in ["2" , 4, "hi" , 66]:
	print i*2

	
22
8
hihi
132
>>> x
['a', 'b', 'c', 'd']
>>> for i in range(4):
	print x[i]

	
a
b
c
d
>>> for i in range(1,4):
	print x[-i]

	
d
c
b
>>> for i in range(1,5):
	print x[-i]

	
d
c
b
a
>>> for i in range(1,5):
	print x[-i],

	
d c b a
>>> List = []
>>> for i in range(5):
	List.append(i)

	
>>> prit List
SyntaxError: invalid syntax
>>> print List
[0, 1, 2, 3, 4]
>>> summ = 0
>>> for i in range(4):
	summ += i**2

	
>>> print summ
14
>>> for i in range(26):
	summ += i**2

	
>>> summ = 0
>>> for i in range(26):
	summ += i**2

	
>>> summ
5525
>>> emptyList = []
>>> for i in range(25):
	emptyList.append(i**2)

	
>>> sumemptyList)
SyntaxError: invalid syntax
>>> sum(emptyList)
4900
>>> emptyList = []
>>> for i in range(26):
	emptyList.append(i**2)

	
>>> sum(emptyList)
5525
>>> 
