Files
advent-of-code/2023/test.py
T
Samuel Enocsson 549f0c4382 Initial commit: AoC solutions 2023-2025
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-02 10:39:09 +01:00

12 lines
407 B
Python

def nextCharIsSymbol(line, index):
for i, char in enumerate(line[index:], start=index):
if not char.isdigit():
return True
return False
# Example usage:
my_line = "416.........................559...............417...............785.......900.......284...........503...796....992.........................."
my_index = 3
result = nextCharIsSymbol(my_line, my_index)
print(result)