Programming Error with Automated Gardening system

Arduino will not run the python code you found on the Internet. You must program in C/C++.

My guess is the author was running the python code on a PC.