+ 1

Write a Python function that accepts student names and marks (store in list). Calculate the total marks and average based on the input. Display student names and marks, total and average based on sample out below:

sample Output Enter names:Philip,James,Mary,Lucy Enter marks:57,58,70,62 ~Output~ Students Name:Philip | Marks: 57 Students Name:James | Marks: 58 Students Name:Mary | Marks: 70 Students Name:Lucy | Marks: 62

5th Jun 2017, 1:41 PM
Chilllittle
Chilllittle - avatar
6 Answers
+ 1
25th May 2020, 1:31 PM
Vugar Mamedovi
Vugar Mamedovi - avatar
0
Thabks
15th Dec 2022, 9:10 PM
Muluken Minlargh
Muluken Minlargh - avatar
- 1
I want to write a piece of code for the marks 27,26,45,61,56 average=43
24th Aug 2018, 3:49 PM
SREEKANTH
- 3
TRY WITH THIS: students = [] marks = [] num = input("How many students?: ") for i in num: name = input("input name of student "+ i) students.append(name) mark = input("input mark of the student") marks.append(mark) for i in num: print(students[i] + ": "marks[i]) I THINK THAT WILL WORK.
5th Jun 2017, 3:19 PM
Ángel Daniel
Ángel Daniel - avatar
- 5
students = [] marks = [] num = input("How many students?: ") for i in num: name = input("input name of student "+ i) students.append(name) mark = input("input mark of the student") marks.append(mark) for i in num: print(students[i] + ": "marks[i])
22nd May 2020, 4:34 PM
Sisay Amare
Sisay Amare - avatar
- 6
okay 👌thanks
6th Jun 2017, 4:08 PM
Chilllittle
Chilllittle - avatar