Q. Find the errors in following code fragment:
(a)
Y = x + 5
print (x, Y)
(b)
print (x = y = 5)
(c)
a = input ('value')
b = a / 2
print (a, b)
Answer =
(a)
"x" is not defined.
(b)
There should be no use of special characters in the print statement.
So, the correct code is :-
print (x,"=",y,"= 5")
(c)
The string cannot divide.
Pls explain B
ReplyDeleteThere should be no use of special characters in the print statement.
DeleteSo, the correct code is :-
print (x,"=",y,"= 5")
Please explain c
ReplyDelete"/" operator can not workwith String.
Deletepls explain me all from beginning
ReplyDeletePlease run all program in your pc.
DeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )