+ 8

Can anyone explain this to me in very simple words?

Certain restrictions apply in regard to the characters that may be used in Python variable names. The only characters that are allowed are letters, numbers, and underscores. Also, they can't start with numbers. Not following these rules results in errors.

15th Jan 2019, 9:34 AM
Mike
9 Réponses
+ 5
It means you can only use the 26 letters of the latin alphabet, 0-9 and this thing _ (underscore). Whatever you do, don't 1: copy another python word, like "print" or "input" 2: Don't start with a number.
16th Jan 2019, 3:13 PM
What was my name again?
What was my name again? - avatar
+ 22
Keywords are not allowed.Spaces are also not allowed. We can use letters a-z A-Z and numbers 1-9 but don't use numbers in the starting Special characters are not allowed except underscore(_) We can use underscore instead of spaces to seperate words Not following these rules results Syntax error Python is a case sensitive programming language.It means there is a huge difference between capital letters and small letters
15th Jan 2019, 10:22 AM
Chandini
Chandini - avatar
+ 9
It means that variables in Python has some naming restrictions: >It has to contain only letters, numbers and underscore (that is this:_). >Also it can't start with number. >And they can't have same names as python keywords. And that if you don't follow this rules it will cause error
15th Jan 2019, 10:22 AM
Maneren
Maneren - avatar
+ 4
Valid definitions for variable names eg: apple = '@' H_1 = 15 _var = True this_is_another_567 = 0 Not valid: 15var (begins with number) var 32 (has whitespace) A+B? (has special chars)
15th Jan 2019, 10:25 AM
Tibor Santa
Tibor Santa - avatar
+ 1
You can't start using Number and space between variable name you can declare like : variable_name
18th Jan 2019, 4:14 AM
Sandeep
Sandeep - avatar
0
Very simple locatio to where the inputed data gets stored
16th Jan 2019, 12:36 AM
Faraj Murad
Faraj Murad - avatar
0
It means variable 1. can't start with numbers. 2. Can starts with alphabet or underscore (_). 3. Can't use space between variable's name. 4. Can use alphabet, numbers, and underscore only.
19th Jan 2019, 5:30 AM
Sonu Rathore
Sonu Rathore - avatar
0
Sure! It means that the person is asking for a clear and easy explanation of something. They want it to be simple and easy to understand, without using complicated words or ideas. https://cbdboxesus.com/
4th Jun 2024, 1:43 PM
Cbd boxes Us
Cbd boxes Us - avatar
- 2
А на русском можно писать?
20th Jan 2019, 12:23 PM
Антон Старцеев
Антон Старцеев - avatar