Functions and Classes in Python

Solutions

Hello Notebook!

Type the lines of the exercise into the empty cells. Ensure that any cells you use are code cells and not markdown cells.

Markdown

In [8]:
%%markdown # You can use markdown magic in a code cell to display both markdown and output, or just use a markdown cell!
### A super subheading
* list item 1
* list item 2
1. numbered list item
1. another numbered list item
1. another item
![Image from the web](https://upload.wikimedia.org/wikipedia/commons/5/52/Angolian-Python.jpg)
```python
# block of code with python syntax highlighting
for k in range(10):
    print(k, 'Hello World!')
```

A super subheading

  • list item 1
  • list item 2
  1. numbered list item
  2. another numbered list item
  3. another item

Image from the web

# block of code with python syntax highlighting
for k in range(10):
    print(k, 'Hello World!')

Help!

help(open)