Create an array that can store marks of 20 students.
Answers
Answered by
1
marks = []
for x in range(1, 21):
tmp_list = []
for y in range(1, 6):
tmp_list.append([f"sub_{y}", 69])
vidhyarti = [f"vidhyarti_{x}"]
vidhyarti.extend(tmp_list)
marks.append(vidhyarti)
tmp_list.clear()
print(marks)
This app doesn't allow me to type a function available inside random module so I made the marks 69
Similar questions
English,
3 months ago
Accountancy,
3 months ago
English,
3 months ago
Computer Science,
6 months ago
Math,
6 months ago
Math,
1 year ago
Math,
1 year ago