How do I locate the local IP of my machine then store it in a variable ready to call it and used when I run the cmd.exe using the os.system
So I basically want to open the shell and run a network mapping software ( which I have done). I want it to include the IP address that is now stored in the variable so that the shell command will say ("nmap" >the IP goes here)
python 3.9