What's these symbols mean in the function suggestion?

Viewed 71

What are these '*','|', '...', '->'?

Why the words are colored differently, are they have special meanings?

I even have no idea what's the keyword to search in google... If someone could offer some links explained in detail, that'd be a huge help.

enter image description here

2 Answers

The full syntax of print() is:

print(*values, sep=' ', end='\n', file=sys.stdout, flush=False)

And print arguments are:

  • values - value to the printed. * indicates that there may be more than one object;
  • sep - values are separated by sep. Default value: ' ';
  • end - end is printed at last;
  • file - must be an object with write(string) method. If omitted it, sys.stdout will be used which prints objects on the screen;
  • flush - If True, the stream is forcibly flushed. Default value: False.

| is the same as or in Python, and -> indicates what a function returns. In this case means print() returns a value of None. Try

return print()

or

print(print())

Hope I helped

Related