Mar-24-2017, 01:15 AM
sorry i just forgot to paste my code but i specified my question at the bottom of my post
n = 0
List = [0]*5
while n < 5 :
List[n] = input("Enter some numbers here").split()
n = n + 1
These code gave me a table of strings and i was asking for a way to convert them to integer, but it's ok i figured it out by doing a nested loop
for i in range(len(List)):
for j in range(len(List[i])):
List[i][j] = int(List[i][j])
so it's all cool sorry for this :)
n = 0
List = [0]*5
while n < 5 :
List[n] = input("Enter some numbers here").split()
n = n + 1
These code gave me a table of strings and i was asking for a way to convert them to integer, but it's ok i figured it out by doing a nested loop
for i in range(len(List)):
for j in range(len(List[i])):
List[i][j] = int(List[i][j])
so it's all cool sorry for this :)