How long can an identifier be in Flask Python?

devquora
devquora

Posted On: Feb 22, 2018

 

In Flask Python, an identifier can be of any length. Also, there are certain rules that the users must follow to name an identifier

  • It should begin with a character or an underscore or from A-Z or a-z.
  • The rest of the name of identifier can contain anything from the following: A-Z or a-z or 0-9 or _.

Flask Python is case-sensitive so it will treat upper case and lower case letters differently.

There are certain words, which are reserved in Python called keywords and they cannot be used as identifiers.Some of them are listed below:

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

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Python Flask Interview Questions

    What are the features of Flask Python?

    Flask Python is one of the newest frameworks of Python and is used for designing web applications for the following feat..

    Python Flask Interview Questions

    What are the advantages of Flask Python?

    Flask Python comes with all the advantages of Python and some additional pros of it are:Flasks design is lightweight ..

    Python Flask Interview Questions

    What is Flask-WTF and what are their features?

    Flask-WTF is featured to offer simple integration with WTForms. The Features include for Flask WTF are:Provides Integr..