PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#I don't think this was in the list lesson.
#You can use a star to remove brackets and commas.
#Please run to see output
list = [1,2,3,4]
print(*list)
#Please run to see outputs
#You can use ,sep= to change what is inbetween instead of just a space
#e.g:
print(*list,sep=",")
print(*list,sep="")
print(*list,sep="+")
#You can also use end e.g
print(*list,end=" 5\n")
#You can even use end like this if you don't want to go to a new line after printing a value. Like this:
for i in list:
print(i, end="")
#Please Like
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run