>
#programming
,
#error-handling
>
What type of error is displayed after running the following program? Explain.
[3 marks]
r = 5
2r = 4
h = "2"
h2 = "0"
print(f"{h*r} and {2r*(h+h2)}")
ii. Correct and write output of program?
What type of error is displayed after running the following program? Explain.
[3 marks]
r = 5
2r = 4
h = "2"
h2 = "0"
print(f"{h*r} and {2r*(h+h2)}")
ii. Correct and write output of program?