N
N
NaitonOlgran2018-02-11 19:39:21
Python
NaitonOlgran, 2018-02-11 19:39:21

How to add arguments in brackets?

Hello.
I saw something like this entry
import serverSocket
server = serverSocket.TCPserver(("", 8000), handler...)
When is such an entry in brackets used as a separate argument and how is it created in the class that two arguments will be accepted, like one separate?
Is it possible, with an example, please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2018-02-11
@NaitonOlgran

This is called a tuple . Usually this data type is described in the very first chapter of any textbook.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question