why is python telling me i have an argument when there is none code example
Example: python print without optional argument
a = [0, 1, 2, 3, 4]
print(*a) # print 0 1 2 3 4
print('[' + ' '.join(map(str, a)) + ']') # print [0 1 2 3 4]
a = [0, 1, 2, 3, 4]
print(*a) # print 0 1 2 3 4
print('[' + ' '.join(map(str, a)) + ']') # print [0 1 2 3 4]