97402/how-to-find-local-ip-addresses-using-python-s-stdlib
Hello @kartik,
Try this out:
import socket s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.connect(("8.8.8.8", 80)) print(s.getsockname()[0]) s.close()
This assumes you have an internet access, and that there is no local proxy.
import socket s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s ...READ MORE
x="malayalam" y="" for i in x: ...READ MORE
Yes, you can find the packages installed ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Enumerate() method adds a counter to an ...READ MORE
You can simply the built-in function in ...READ MORE
Hello, For html encoding, there's cgi.escape from the standard library: >> ...READ MORE
Hello @kartik, You can try the code below: pip ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.