+ 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
3 Respuestas
+ 1
Can you show us your code?
0
I realized that I forgot to add spaces when I was initializing the variables
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.