Str.isidentifier returns True if string is valid identifier as per language otherwise returns False. Identifiers start with A to Z ,a to z and underscore(_) are considered as valid identifiers.

String that begins with digit and special characters(!@ etc.) is considered as invalid identifiers.

How to write str.isidentifier in python
Str.identifier

 

By SC

One thought on “Str.isidentifier”

Leave a Reply

Your email address will not be published. Required fields are marked *