I am running a python script on my raspberry pi and I was just wondering if there is any command that I can use that counts how many lines are in my script.
Regards
You can use the wc command:
wc -l yourScript.py
python script - counting lines of code in the script