Informatics Practices
If the value of a = 10 and b = 15, then a *= b will assign …………… to the variable a.
- 25
- 150
- 100
- 225
Python Funda
3 Likes
Answer
150
Reason — The operator *= is a shorthand for multiplying and assigning a value. So, a *= b means a = a * b. Given a = 10 and b = 15, the expression evaluates to a = 10 * 15, which results in a = 150.
Answered By
1 Like
Related Questions
Name the device used to convert images, printed text or an object into digital image.
Give any two features of Python.
Define Sequence data type in Python? Give two examples.
The software which is freely available for use but source code may not be available comes under —
- Open-Source
- Firmware Software
- Freeware Software
- Proprietary Software