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

True is a boolean operator in Python. The significance is that one can set flags, run a loop and do many more things with it. You have to use Capital T instead of small t.
like example
while True:
print(“Hello”)…

you have to make python variables format correct as i can see you have write Boolean true this way ,In python you have to write it in “True” this way as python variables are very case-sensitive i.e this error occur for you

You had mistake that Ture and true

Python is a case-sensitive language. In your code you have to use “True” not ‘true’ because you required boolean operator i.e. True