# SD212 HW 29

## [name] Type your name on the next line


## [Q1]

> What is the first example function computing?
>
> a)  The number of primes within a certain range
> b)  The trajectory of a simulated missile
> c)  Whether a credit card number is valid
> d)  The final score in a bowling match
> e)  The mental health benefits of cycling


## [Q2]

> Which data science library that we have used before in SD211 comes
>
> up in the video?
>
> a)  Plotly
> b)  Wikipedia
> c)  EasyGUI
> d)  BeautifulSoup
> e)  NumPy


## [Q3]

> How would we write the type for "a list of integers" in Python?
>
> a)  `list[int]`
> b)  `list_int`
> c)  `List<int>`
> d)  `List<Integer>`
> e)  `list: int`


## [Q4]

> Imagine a function `ordinal` that takes a number and converts it to
>
> a string for that ordinal number, so like `cardinal(3)` would return
> `"third"`.
>
> What should the type annotation for such a function look like?
>
> a)  `def ordinal(int x): str`
> b)  `def str ordinal(int x)`
> c)  `def ordinal(int: x) -> str`
> d)  `def ordinal(x: int) -> str`
> e)  `def ordinal(x: int): str`


