Computer Science, asked by aayushrai870, 6 months ago

Find the error in the following code: a=input("Enter the value")

b=a/2

print(a,b)​

Answers

Answered by vtu15250
1

Answer:

; is missing in the input

Answered by Anonymous
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