All challenges
Multiple ChoiceIntermediate 30s

typing.Optional

Choose the best answer for: Optional type hint
Options
  1. 1Optional[X] is Union[X, None]
  2. 2Optional is for keyword arguments only
  3. 3Optional[X] means the value is required
  4. 4Optional[X] is the same as X

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle