Code error in running sms alert

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

@kmunim230

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 temp_sms.py
then press enter and edit line 9 as:
while True:
press ctrl+x then type y and press enter
now type:
sudo python3 temp_sms.py
you are good to go