variable: a value that can change
x <- "Hello World"




x <- "Hello World"
DISPLAY(x)

 


x <- "Hello World"
DISPLAY(x)

Hello World


x <- "First line\n"
DISPLAY(x)
x <- "Second line"
DISPLAY(x)

 


x <- "First line\n"
DISPLAY(x)
x <- "Second line"
DISPLAY(x)

First line
Second line


Variable Name Rules

  • Must begin with letter
  • Only letters, numbers, and underscores
  • Descriptive names
  • snake_case
  • Reserve Traditional Names
  • Avoid Keywords
  • Longer > Shorter