Get answer of your all questions and doubts! ➤
Question
What is an atom? What is an expression?
[Computer Science Class – 11 Sumita Arora solutions. Chapter 6 – Data Handling.]
Answer
Atom :- something that has a value.
Example – identifiers, list, tuples, strings, literals etc.
Expression :- an expression in Python is any valid combination of operators and atoms.
Example – x = 5+10
Here 5+10 is an expression.
Related Questions:
- Is it true that if two objects return True for is operator, they will also return True for == operator?
- Given str1 = “Hello”, what will be the values of: (a) str1[0] (b) str1[1] (c) str1[-5] (d) str1[-4] (e) str1[5]
- What are three internal key-attributes of a value-variable in Python? Explain with example.
- What will the result given by the following? (a) type (6+3) (b) type (6-3) (c) type (6*3) (d) type (6/3) (e) type (6//3) (f) type (6%3)
- Ask or look other questions and answers.