Why can't i use words for a variable for example... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Why can't i use words for a variable for example...

Im trying to solve the code coach called security but im confused... num = T$xxxxxxxG If num == T$xxxxxxxG puts ("ALARM") else puts("quiet")

6th May 2021, 2:51 AM
Christopher Ricardo Edwards Jr
Christopher Ricardo Edwards Jr - avatar
2 Answers
6th May 2021, 2:59 AM
Christopher Ricardo Edwards Jr
Christopher Ricardo Edwards Jr - avatar
0
Christopher Edwards Variable contains letter, number and underscores only , and does not start with number ! Your variable num=T$xxxxxxxG contains special symbol "
quot; which does not accepted !
6th May 2021, 4:23 AM
Giriraj Yalpalwar
Giriraj Yalpalwar - avatar