Code error in running sms alert

hi i am getting some error “true is not defined”
can you please help me with it


Python variables and identifiers are case-sensitive. So make sure all the upper case and lowercase letters are typed properly.

In your case, while true is incorrect format. Correct it to while True:

The correct way to write Boolean true in python is “True”. In your code it is written as “true”.
To correct this error, in command prompt type:
sudo nano
then press enter and edit line 9 as:
while True:
press ctrl+x then type y and press enter
now type:
sudo python3
you are good to go