14. Given str1 = “Hello”, what will be the values of ?
(a) str1 [0] : ‘H’ (b) str1[1] : ‘e’ (c) str1[-5] : ‘H’ (d) str1[-4] : ‘e’ (e) str1[5] : ‘o’
14. Given str1 = “Hello”, what will be the values of ? Read More »
(a) str1 [0] : ‘H’ (b) str1[1] : ‘e’ (c) str1[-5] : ‘H’ (d) str1[-4] : ‘e’ (e) str1[5] : ‘o’
14. Given str1 = “Hello”, what will be the values of ? Read More »
An atom is something that has a value. Identifiers, Literals, Strings, Lists, Tuples, Sets etc. are all atoms. An expression is any valid combination of operators, literals and variables. In other words a valid combination of atoms and operators forms a python expression.
11. What is an atom ? What is an expression ? Read More »