int object is not subscriptable

Solutions on MaxInterview for int object is not subscriptable by the best coders in the world

showing results for - "int object is not subscriptable"
Vincenzo
23 Feb 2016
1name1 = input("What's your name?: ")
2age1 = input("How old are you?: ")
3x = int(age1)
4twentyone = 21 - x
5print("Hi, " + name1 + " you will be 21 in:", twentyone, "years.")
6