BIT BY BYTE
Question 1 of 2
2 marks
A student writes: `age = input("Enter age: ")` then `print(age + 1)`. The program crashes. Explain why.
`input()` returns a string. You can't add 1 to a string — need to cast with `int()` first
The `print()` function can't display integers
You can't use `+` inside a `print()` call
The variable `age` needs to be declared with a type annotation
Check Answer