Computer Science
What is an atom in Python? What is an expression?
Python Data Handling
19 Likes
Answer
In Python, an atom is something that has a value. Identifiers, literals, strings, lists, tuples, sets, dictionaries, etc. are all atoms. An expression in Python, is any valid combination of operators and atoms. It is composed of one or more operations.
Answered By
13 Likes
Related Questions
Are these values equal? Why/why not?
- 20 and 20.0
- 20 and int(20)
- str(20) and str(20.0)
- 'a' and "a"
What is the difference between implicit type conversion and explicit type conversion?
Two objects (say a and b) when compared using == ,return True. But Python gives False when compared using is operator. Why? (i.e., a == b is True but why is a is b False?)
Is it true that if two objects return True for is operator, they will also return True for == operator?