Computer Science, asked by unnati3004, 11 months ago

Out of the following, find those identifiers, which cannot be used for naming Variables
Python program:
Price*qty, class, For, do,
4thcol, totally, Row31, _Amount​

Answers

Answered by Equestriadash
9
  • Price*qty

This is an invalid variable, as it has a special character (*) in it.

Variables cannot have special characters, other than an underscore (_).

  • class

This is an invalid variable, as it is a keyword.

Keywords cannot be used as variables.

  • For

This is a valid variable.

  • do

This is a valid variable.

  • 4thcol

This is an invalid variable as it starts with a number.

Variables cannot start with numbers.

  • totally

This is a valid variable.

  • Row31

This is a valid variable.

  • _Amount

This is a valid variable.

Similar questions