Informatics Practices
What is the error in the following code?
z, p = 6
Python Funda
1 Like
Answer
The error arises because the right-hand side (RHS) has one value (6) while the left-hand side (LHS) has two variables (z, p). This mismatch causes a ValueError.
Answered By
1 Like
Related Questions
Write a function that takes amount in dollars and performs dollar-to-rupee price conversion; it then displays the amount converted to rupees.
What would the following code do?
a = b = 70Find out the error(s) in following code fragment:
temperature = 90 print temperatureFind out the error(s) in following code fragment:
a = 30 b=a+b print (a And b)