Doubt in python variabes pdf

refer python variabes pdf: how can an identifier name start with unicode. I read on internet that unicode contains special characters too…

Hey @stutijain578, unicode contains many different types of classes of characters. So there unicode doesn’t mean all the characters included in the list of unicode characters. Although unicode (as a whole) is incorrect to say. Just a subset of unicode characters may be used. I would suggest you to refer to this instead of the pdf.

I hope you get to understand the naming rules for identifiers.
Happy learning :slight_smile:

For you to understand better , see this too

  1. The first character in an identifier must be an alphabet or an underscore and can be followed only by any number alphabets, or digits or underscores.
    
  2. They must not begin with a digit.
    
  3. Uppercase and lowercase letters are distinct. That is, identifiers are case sensitive.
    
  4. Commas or blank spaces are not allowed within an identifier.
    
  5. Keywords cannot be used as an identifier.
    
  6. Identifiers should not be of length more than 31 characters.
    
  7. Identifiers must be meaningful, short, quickly and easily typed and easily read.
    

I hope this helps you :slight_smile:

1 Like