05-12-2024, 01:26 AM
Your syntax error is trying to read a string as a number. 
DATA 1's, 2's, 3's
READ x <-- ERROR!
READ x$
PRINT x$
(Prints "1's")
Data can hold both numbers and strings in one statement. Read can only read the type you specify back though.

DATA 1's, 2's, 3's
READ x <-- ERROR!
READ x$
PRINT x$
(Prints "1's")
Data can hold both numbers and strings in one statement. Read can only read the type you specify back though.
