0
I want to know how to use a lists content as int
How can I use a list's content as separate ints
2 ответов
+ 1
Can you clarify your question more, lists can store any data type, if you want to somehow get all the values, then there is something called "unpacking" that should satisfy your desire
our_list = [1, 2, 3, 4]
print(*our_list)
+ 2
list = [ 1, 2, 3 ];
arr = { 1, 2, 3 };
for num in list:
print(str(num));
for num in arr:
print(str(num));