Computer Science, asked by snehasismukherjee295, 17 days ago

Write valid python identifiers from the following _abc , #gh , ab&cd , a34_WC, 2abc , ab cd , 3444 , Abc1, aBc2_d​

Answers

Answered by Anonymous
0

Answer:

Valid: _abc, Abc1, aBc2_d, a34_WC

Invalid: 2abc, ab cd, 3444, #gh, ab&cd

Explanation:

Points to remember-

You cannot use reserved keywords as an identifier name.

Identifiers can contain all the letters (Small, upper both), all the digits from 0 to 9, and underscore.

The identifier name cannot begin with a digit.

Python identifier names are case sensitive and they do not have any limit on the length of the identifier name.

Similar questions