Variables

Terms

  • Naming the variable
    • You can name a variable with any type of text
    • I have seen it to where you can use an “x” or letter and I have seen it with words
    • Can we name a variable with quotes?
  • Type of data in the variable
    • Thats where you can put different values like a str, bool, int,
    • A string is a value that is seen like ‘x’ or ‘1’ or ‘what are you doing?’ or ‘whats up’
  • Accessing the data
  • Changing the value of the variable
  • Example of getting multiple variables in different data types
  • What does call mean?
  • Why did I get a name error?
    • I put in the name Alivia into the terminal without quotes and I got an error
  • I got an error message when I was typing in the st -»> ‘Alivia’ = 7 File “", line 1 SyntaxError: can't assign to literal

Adding image

alt text