English

Which of the following is the correct identifier? - Computer Science (Python)

Advertisements
Advertisements

Question

Which of the following is the correct identifier?

Options

  • global

  • Break

  • def

  • with

MCQ
Advertisements

Solution

Break

Explanation:

All the other options, global, def, and with, are reserved keywords in Python and therefore cannot be used as identifiers. The word Break, starting with a capital letter, is not a keyword in Python and hence is a valid identifier.

shaalaa.com
  Is there an error in this question or solution?
2024-2025 (March) Set 4
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×