+ 1

Having trouble initializing variables

For some reason in the try it yourself i tried to make a sentence by initializing three variables and tried to put them together but the output said there was a variable that wasn't initialized

20th Feb 2019, 8:19 PM
Micheal Hollimon
Micheal Hollimon - avatar
3 ответов
+ 1
Can you show us your code?
20th Feb 2019, 9:38 PM
Denise Roßberg
Denise Roßberg - avatar
0
I realized that I forgot to add spaces when I was initializing the variables
21st Feb 2019, 10:12 PM
Micheal Hollimon
Micheal Hollimon - avatar
0
x = 9 y = "This is a string" Z = 90 puts x puts y Z = 28 # Z is a constant because constant variables are on capital letter. Contant variables cannot be replaced.
22nd Feb 2019, 5:09 PM
wolF
wolF - avatar