for the sake of understanding added input statement also.
Code snippet:
no_of_testcases=int(input("Enter the no_of_testcase: "))
data=[]
for i in range(no_of_testcases):
n=int(input("Enter how many time interval you wanted to enter: "))
for j in range(n):
data.append(input("Interval: "))
print(data)
Output:
Enter the no_of_testcase: 5
Enter how many time interval you wanted to enter: 1
Interval: 22:13:56-22:13:55
Enter how many time interval you wanted to enter: 1
Interval: 00:00:00-23:59:59
Enter how many time interval you wanted to enter: 1
Interval: 23:59:59-00:00:00
Enter how many time interval you wanted to enter: 2
Interval: 00:00:00-23:59:59
Interval: 00:00:00-23:59:59
Enter how many time interval you wanted to enter: 2
Interval: 13:44:59-13:44:59
Interval: 13:45:00-13:45:00
['22:13:56-22:13:55', '00:00:00-23:59:59', '23:59:59-00:00:00', '00:00:00-23:59:59', '00:00:00-23:59:59', '13:44:59-13:44:59', '13:45:00-13:45:00']