You need to use the length from one of your lists populated with data instead. If myList is empty before the for loop starts it will iterate zero times because len(myList) == 0.
Use e.g. for i in range(names):
instead. Assuming your lists with data (names
, cities
, ages
and problems
) has the same length.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…