Now I want to run multiple test cases one by one and display the output together line by line.
n=input()
for i in range (0,int(n)):
#takes input and runs the code
#stores output in a string
#prints output for all n cases one by one
How can I make the program to store N outputs of N different test cases in N different strings without actually defining N strings myself??