mirror of
https://github.com/theoludwig/programming-challenges.git
synced 2025-05-18 12:02:53 +02:00
refactor: usage of built-in type hinting in Python solutions
This commit is contained in:
@ -1,13 +1,12 @@
|
||||
from typing import List
|
||||
import sys
|
||||
|
||||
input_values: List[str] = []
|
||||
input_values: list[str] = []
|
||||
for value in sys.stdin:
|
||||
input_values.append(value.rstrip('\n'))
|
||||
|
||||
|
||||
def divider_list(number: int) -> List[int]:
|
||||
number_list: List[int] = []
|
||||
def divider_list(number: int) -> list[int]:
|
||||
number_list: list[int] = []
|
||||
for index in range(1, number + 1):
|
||||
if number % index == 0:
|
||||
number_list.append(index)
|
||||
|
Reference in New Issue
Block a user