Last active
July 9, 2023 09:20
-
-
Save ahmedbesbes/20ee2573ba7982a3c8b3030e25dc28b2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Sequence | |
def print_sequence_elements(sequence: Sequence[str]): | |
for i, s in enumerate(sequence): | |
print(f"item {i}: {s}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Shouldn't the variable in the enumeration be called 'sequence'?