Is there any other optimized and simple way to store inputs into a list of string.
Input
bcdef
abcdefg
bcde
bcdef
output
['bcdef', 'abcdefg', 'bcde', 'bcdef']
below is the code I tried to code
l = []
for i in range(4):
l.append(input())
print(l)
fileinput?