0
I’m making a Python script and I’m getting an msg error I can’t fix
x = [int(e) for and in input(). split()]
msg of error: Memoryerror Command exited with non-zero status (1)
tried to use map:
x = list(map(int, input(). split()))
msg of error: Memoryerror Command exited with non-zero status (1)
Generally the entries do not exceed 10,000 numbers and the computer has 32Gb of RAM? What can I do, the OS is 64bit?
I couldn’t play. The error happens when you do
entrada = input()
and glue the result? I suspect it has to do with the input buffer, not the conversion toint
.– Pedro von Hertwig Batista
When I put more than 10000 entries in the input, the error happens! I saw in the documentation that the list has a limitation of entries in 12000 elements, I tried to create a txt with saving the file, but I can’t use the data as lists in the same way.
– weltonvaz
@weltonvaz input() with more than 10 thousand elements has no sense, are input data via keyboard as far as I remember, it is insane for a user to enter this amount of elements is not no ?
– ederwander