#๐ cant understand the purpose
26 messages ยท Page 1 of 1 (latest)
@tepid sparrow
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
-
The
endparameter ofprint()indicates that it should be placed after each new content. -
The last
print()is empty.
!e
for i in range(20):
print(i, end=", ")
:white_check_mark: Your 3.12 eval job has completed with return code 0.
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
oh k
the default value of end is "\n" but you can set it to other strings you want at the end of the data you printed
whats \n
The last print() does nothing, you can remove it if you don't need it.
ok
and they become special signs like \n is newline or \t is a tab
oh
thanks guys
it prints a newline
but does that matter
Depends what you want to do
it depends if you want that newline
Use !close if you have no more questions
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.