Q. Correct the following program so that it displays 33 when 30 is input.
val = input("Enter a value")
nval = val + 30
print (nval)
Answer =
val = int(input("Enter a value")) nval = val + 3 print (nval)
Answer =
val = int(input("Enter a value")) nval = val + 3 print (nval)
In answer in second line it's val+3 correct it val+30
ReplyDeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )