How to pass variables to a Python scripts with argument

Passing the argument as:

python3 my_script.py red

In script, use variable as:

# my_script.py
import sys
colour = sys.argv[1]

if colour == 'red':

links

social