Python · Type Annotations
What does this print, and does it raise? ``` def repeat(s: str, n: int) -> str: return s * n print(repeat(["P"], 3)) ```
Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.
