valid_names.md

April 9, 2022 ยท View on GitHub

Valid Variable Names

  1. Which of the following is a valid variable name?
  • x - valid
  • x_and_y - valid
  • x_&_y - invalid
  • 2 - invalid
  • 2nd - invalid
  • _2 - valid
  • x-y - invalid
  1. True or False? If we defined a variable called var then, VAR is the same name as Python is not case-sensitive - False