0

Is there a better way of doing this?

list1 = [] #Enter the same value in the list three times together. normalG = input("Enter a normal glider: ") list1.append(normalG) list1.append(normalG) list1.append(normalG)

23rd Nov 2019, 6:54 PM
Steven Iannucci
Steven Iannucci - avatar
1 Answer
0
normalG = input("Enter a normal glider: ") list1 = [normalG] * 3
24th Nov 2019, 5:02 PM
V Vetrov
V Vetrov - avatar