-4

when I ran the bellow code;

a = input('please enter your weight :')
b = input('please enter your height :')
print(a/b)

I got this error:

Type Error: unsupported operand type(s) for /: 'str' and 'str'

jose_bacoy
  • 12,227
  • 1
  • 20
  • 38
Hani
  • 3
  • 3

1 Answers1

-1
a = int(input('please enter your weight :'))
b = int(input('please enter your height :')) 
print(a/b)
BloomShell
  • 833
  • 1
  • 5
  • 20