Example lets say of python:-
if __name__ == '__main__':
q = int(input())
for _ in range(q):
string = input()
# assume string's length is more than 5000
print(len(string))
# this displays 4096 no matter how much more than 4096 the input size is.
What I want is to accept large input size for operations. But it only accepts strings of limited length. Can I get alternative solutions to accept input size around 10 ^ 5 Where the length of the respective programming language shows accurate length
- In a program if we generate string length of 10 ^ 5 and then using the length function it shows the correct length.
- Same way if I have a file size of 10 ^ 5 input size, the code shows correct input length.
- Then why terminal doesn't show correct input length when that much input is supplied to terminal.