10 lines
697 B
HTML
10 lines
697 B
HTML
<!doctype html><meta charset='utf-8'><style>
|
|
body{margin:0;background:#1e1e1e;font-family:Consolas,'DejaVu Sans Mono',monospace;color:#d4d4d4}
|
|
.bar{background:#333;color:#ccc;padding:8px 14px;font-size:14px}
|
|
pre{margin:0;padding:16px 18px;font-size:15px;line-height:1.45;white-space:pre-wrap}
|
|
.p{color:#6a9955}.c{color:#9cdcfe}
|
|
</style><div class='bar'>Terminal - lecture 5: functions as first-class objects</div><pre><span class="p">$</span> <span class="c">python -m flask_day_54.domain.first_class_functions</span>
|
|
calculate(add, 2, 3) = 5
|
|
calculate(subtract, 5, 3) = 2
|
|
outer_function() = Hello from the nested function
|
|
returned nested function() = Hello from the nested function</pre> |