I use Visual Studio Code for any coding and recently I noticed a strange thing. Whenever I try to print a really long list, the list is not printed completely, it is cut off.
primes=[]
for i in range(1000000):
primes.append(str(i))
print(primes)
print(len(primes))
print(primes[-1])
The list is 1 000 000 units long and last number in the list is 999 999 as expected but the list is not printed completely.
Output is:
["0", "1", ..., "1345"
1000000
999999
May this be a compiler error?
Thanks for every suggestion.
I have tried your code in vscode, you need to increase the Integrated:Scrollback setting for terminal in your vscode settings:

100000If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With