HomePython revision Tour 1 Out of the following, find those identifiers, which cannot be used for naming Variables or Functions. 9 Comments Facebook Twitter Q. Out of the following, find those identifiers, which cannot be used for naming Variables or Functions in a Python program:price*Qty, class, For, do,4thCol, totally, Row31, _Amount Answer =price*Qty , class , 4thCol .
also "For" cannot be used
ReplyDeleteYou are wrong, F is in capital letter in "For". So we can use it as identifiers.
Deletealso"_Amount" cannot be used
ReplyDeleteIt can be used as underscore is valid in writing identifiers
DeleteWhy is row31 not categorised as invalid ? It does contain digits which i believe is not valid for writing identifiers
ReplyDeleteYou are wrong, Please practice it in your IDLE Python.
Deletedigits cannot be present only at the begining. Rest elsewhere digits, underscores and alphabets are used.
DeleteHow come class cannot be used for naming variables??
ReplyDeleteBecause class is a keyword
ReplyDeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )