-1

I'm trying to right this code for school and it says

TypeError: int() argument must be a string, a bytes-like object or a real number, not 'builtin_function_or_method'

Here is my code

val = (int)(input)("Enter your Age: ")
print(val)
if (val) > 10:
    print('your in double digits')
else:
    print('You are in the single digits 

0stone0
  • 34,288
  • 4
  • 39
  • 64

1 Answers1

0

you should change to

val = int(input("Enter your Age: "))
print(val)
if (val) > 10:
    print('your in double digits')
else:
    print('You are in the single digits
kunnapat
  • 37
  • 3