I am new to python programming I was trying to create bot service of twitch but I am totally confused about how to search for ports and hosts. The code I wrote is:
import socket
def opensocket(socket):
s = openscoket("irc.twitch.tv", port)
but it gives me error:
File "main.py", line 2
def opensocket(socket):
^
IndentationError: unexpected indent
I used port because I don’t know how to search for serial ports. I also have an error in my code how can I solve this?