How do I use the sys module for my function so that i can pass in an ip at the cmd and it gets verified by a regex?
I’m a noob at programming. After watching a lesson at cs50, I am trying to do a problem set. I have written the correct regex but now I want to be able to pass my script at the cmd with various numbers. I don’t how to do this. All the tutorials I’m watching are only teaching how to pass command line arguments but not how to write a script that accepts them. please help
import re
import sys