Find the error in the following code: a=input("Enter the value")
b=a/2
print(a,b)
Answers
Answered by
1
Answer:
; is missing in the input
Answered by
1
Answer:
a=input("Enter the value")
b=a/2
print(a,b)
The program has no errors but has certain restrictions , it will not give the output if a contains string values.
The best way to write it is:
a=float(input("Enter the value"))
b=a/2
print(a,b)
Attachments:
Similar questions