This code works no problem if I enter it at the Terminal prompt, but gives me an error “input does not match any value of country” if I place it in my script.
Hi guy, I think the error you’re encountering, “input does not match any value of country,” suggests that the value you’re providing for the country parameter in your script is not recognized. To resolve this, you can try using the country code instead of the country name.
For example, instead of specifying country=“south africa”, you can use the country code for South Africa, which is ZA. Modify your script as follows: