since it uses induction and I am out of practise.
Base case
For n = 4factorial(4) = 4*3*2*1 = 24
and 24 = 2*2*2*2 = 16
and 24 ≥ 16
Induction step
For n >= 4 assume we haveand consider
QED
(I also wanted to learn about writing maths in html)
since it uses induction and I am out of practise.
factorial(4) = 4*3*2*1 = 24
and 24 = 2*2*2*2 = 16
and 24 ≥ 16
and consider
QED
python -m pdb myscript.py
C:\Dev\src>cat bad.py
def naughty():
raise Exception()
naughty()
C:\Dev\src>python bad.py
Traceback (most recent call last):
File "bad.py", line 4, in <module>
naughty()
File "bad.py", line 2, in naughty
raise Exception()
Exception
import pdb; pdb.set_trace()
python -m pdb bad.py
> c:\dev\src\bad.py(1)<module>()
-> def naughty():
(Pdb)
(Pdb) c
Traceback (most recent call last):
File "C:\Python27\lib\pdb.py", line 1314, in main
pdb._runscript(mainpyfile)
File "C:\Python27\lib\pdb.py", line 1233, in _runscript
self.run(statement)
File "C:\Python27\lib\bdb.py", line 387, in run
exec cmd in globals, locals
File "<string>", line 1, in <module>
File "bad.py", line 1, in <module>
def naughty():
File "bad.py", line 2, in naughty
raise Exception()
Exception
Uncaught exception. Entering post mortem debugging
Running 'cont' or 'step' will restart the program
> c:\dev\src\bad.py(2)naughty()
-> raise Exception()
(Pdb)
(Pdb) p <variable_name>
(Pdb) a