jeudi 2 juillet 2015

How would I take a string from an argument and use it in an if statement?

I know how to do this in bash:

if [[ "$1" = "stringhere" ]]; then
    echo "Argument is equal to string!"
fi

How would I do this in Python?

Aucun commentaire:

Enregistrer un commentaire