Boundary

Report a typo

Write a program that divides numbers into two lists depending on whether they are greater than or less than 5. You don't have to include number 5 itself.

A sequence of numbers has been read from the input for you.

Sample Input 1:

34567

Sample Output 1:

[3, 4]
[6, 7]
Write a program in Python 3
# work with a list from this variable
numbers = [int(n) for n in input()]

# change the next two lines
less_than_5 = ...
greater_than_5 = ...

# printing your results
print(less_than_5)
print(greater_than_5)
___

Create a free account to access the full topic