Ubuntu Pastebin

Paste from hoxily at Thu, 29 Jan 2015 11:49:54 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
>>> def f():
...     1
...
>>> f()
>>> b = f()
>>> type(b)
<class 'NoneType'>
>>> def f2():
...     1+2+3
...     b = 6
...
>>> f2()
>>> b = f2()
>>> type(b)
<class 'NoneType'>
>>> type(None)
<class 'NoneType'>
Download as text