Python Identifiers and Keywords

Source: Internet
Author: User

Identifiers

Some of the symbols and names and identifiers that developers customize in the program are defined by themselves, such as variable names, function names, etc.

  

Rules for identifiers

Identifiers consist of letters, underscores, and numbers, and numbers do not start

Note:identifiers in Python are case-sensitive

  Naming rules

Hump naming method: Stuname, Stuname

  

Key words
      • What is a keyword

        Python some identifiers with special functions, this is called the keyword

        Keyword is used by Python, so developers are not allowed to define their own identifiers with the same name as the keyword

      • View Keywords:

              and     as      assert     break     class      continue    def     del      elif    else    except     exec      finally    for         from    global      if      in      import     is        lambda     not         or      pass      print   raise   return     try       while      with        yield

Python Identifiers and Keywords

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.