How would I get the brackets and commas removed from the printed list with my current code? I would like the output to be: Entered integers: 1 2 3 4 5 (etc)
def main():
list=[]
print("Please enter an array of 10 elements:")
for i in range(1):
list.append([int(x) for x in input().split()])
print("Entered integers:",*list,end=" ")
main()
def main():
list = []
print("Please enter an array of 10 elements:")
for i in range(1):
list.append([int(x) for x in input().split()])
print("Entered integers:", ' '.join([str(x) for x in list[0]]), end=" ")
main()

How would I get the brackets and commas removed from the printed list with my current...