Im writing a program that reads in a list, then displays the length of the list, and displays the list with one number displayed per line. This is what I have so far:
from List import *
def main():
numbers = eval(input("Give me an list of integers: "))
strings = ArrayToList(numbers)
length = len(strings)
print("The length of the list: ", length)
This is what Im expecting the result to be like:
Enter a list of integers: [3, [5, [1, [6, [7, None]]]]]
The length of the list:
5
The list:
3
5
1
6
7
Can anybody help me out? Im getting the length of the list to show as 2 instead of 5 which is what it should be.