TypeError: 'type' object is not subscriptable

YU NA Joe·2022년 4월 27일
0

The “TypeError: ‘type’ object is not subscriptable” error is raised when you try to access an object using indexing whose data type is “type”. To solve this error, ensure you only try to access iterable objects, like tuples and strings, using indexing.

List2 = [23, 65, 19, 90]
pos1, pos2  = 1, 3 
get =  list[pos1], list[pos2]

# TypeError: 'type' object is not subscriptable

0개의 댓글