0
Help
Can someone please tell me what end=â â in python means?
5 Answers
+ 3
Since you probably don't know what functions are, the end=" " is telling Python that the value of i should end in a space not a new line. If that wasn't there the values would be on separate lines like...
1
2
3
4
instead of
1 2 3 4 (with end=" ")
+ 1
print("hello")
print("world")
hello
world
print("Hello", end=" ")
print("world")
hello world
doesn't only apply to i in loops, it works with print in general. it puts " " at the end of the line instead of ending the line
0
Was the code something like print("text", end=" ")?
0
print(i,end=â â) it was used in for cycle
0
it naturally ends in \n . its the ending character if im not mistaken. this makes it possible to get single line output from a for loop