dataList = list(input('Enter a data value'))
for x in range(0, 11):
dataList.append(list(input("Enter a data value")))
rect(210, 499, 50, (dataList[1]))
Basically, I want to take input from the user, they will enter some integers. These integers will be used as height values for rectangles. Currently, python returns the error that type str can't be used as a height value. Makes sense. When I try map
or list conversions, I get errors saying type conversion to a str must operate on an object, not on a list.
How do I make the list values be evaluated by Python as integers, so that they can be placed into the rect
function by calling their place as above?