Informatics Practices
What would the following code do?
a = b = 70
Python Funda
2 Likes
Answer
The above code performs multiple assignment, where the value 70 is assigned to both variables a and b simultaneously.
Answered By
1 Like
Related Questions
Modify the above function to take a third parameter called shape type. Shape type should be either triangle or rectangle. Based on the shape, it should calculate the area.
Formula used: Rectangle Area = length * widthWrite a function that takes amount in dollars and performs dollar-to-rupee price conversion; it then displays the amount converted to rupees.
What is the error in the following code?
z, p = 6Find out the error(s) in following code fragment:
temperature = 90 print temperature