Practice
For each of the following, state the datatype and value, unless it will produce
an error, in which case, state why there is an error.
- 'five' + 'four'
- 'five' + ['four']
- ['five'] + ['four']
- 4 // 3 - 3
- [1,2,3] + 4
- 'five' * 3
- 3 * 'five'
- 2 ** 3
- 3 ** 2
- 'three' * 'five'
- [1,2,3] * 4
- math.sqrt(9)
- math.cos(0)