Professional Documents
Culture Documents
It can be
class name or function name or module name or variable name.
Rules:
By mistake if we are using any other symbol like $ thenwe will get
syntax error:
total = 10
TOTAL = 999;
Note :
3) If the identifiers starts and end with two underscore symbol then the
identifiers is language defined special name, which is also known as
magic method.
e.g. _ _ add _ _
Reserved Words
--> True,False,None
---> if,elif,else
---> while,for,break,continue,return,yield,in
----> import ,from, as, class, def, pass, global, nonlocal, lambda,
del,with.
Data types
int, float, complex, bool, str, bytes, bytearray, range, list, tuple,
set,frozenset, dict, None
inbuilt function:
a + bj
a = real part
bj = imaginary part
/4 = 2 / 41 =
s1 = "amol"
s2 = 'amol'
e.g . s1 = 'amol'
s[0] = a = s[-4]
s[1] = m = s[-3]
s[2] = o = s[-2]
s[3] = l = s[-1]