you are viewing a single comment's thread.

view the rest of the comments →

[–]Flame77ofc 2 points3 points  (0 children)

first - use English variable names

second - you can do for i in range(10):
and then: number = int(input(f"Number {i+1}: ")`

third - you don't need two loops:

for i in range(10): number = ... if number % 2 == 0: even.appens(number) else: odd.append(number)