+ 1

List in list question

The user chooses 10 numbers 3 times, i made a list and i want to append those numbers every time he choose those 10 number. It should be in form of(example): list1 = [[6,3,3,3,3,3,3,3,2,1],[5,6,7,9,3,2,1,2,7,5],[5,7,5,6,8,6,4,5,2,1]] https://code.sololearn.com/c84mk1C6azfZ/?ref=app How to do it?

9th Feb 2022, 7:50 PM
Lenoname
1 Answer
+ 2
list1 = [] crows = 0 for rows in range(1,4): print('Row number :' , crows) print('......................') list2=[] #new list add to another outer list for b in range (1,11 ): c = int(input('Choice no. ' + str(b) + ' :\n')) list2.append(c) if c > 50 or c < 1: print('Warning you can only choose numbers between 1-50, wrong input will decrease your chances of winning') list1.append(list2) crows += 1 print(list1)
9th Feb 2022, 8:01 PM
Jayakrishna 🇼🇳