No products in the cart.

What are the certain rule for …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

What are the certain rule for naming a variable in python
  • 1 answers

Navin Anthony 5 years, 5 months ago

1.Variable names must not contain any reserved keywords. 2.It should not starts with any special character such as hyphen(-), dollar ($), period(. ), comma (, ) etc. except underscore(_). 3.it should not contains space inbetween as for example: 'ab_cd' is a valid variable name, but 'ab cd' is not as it contains space in between. 4.variable name must not starts with any numeric value, but inbetween we can give any numeric value. As for example '1ab' is not a valid variable name but 'ab1' or 'ab12cd' is a valid name.
http://mycbseguide.com/examin8/

Related Questions

All notes
  • 0 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App