Computer Science, asked by dududakeshi, 6 months ago

Write python program to Read the Name of student and Their total mark out of 100 and print the particular student is failed or passed with name.Instruction :1. Read Name and Mark of students out of 5002. Student will be pass by getting 33% marks(you must know how to find 33% of mark out of 500)3. Display like example " Ramesh is Passed" or "Ramesh is Failed"

Answers

Answered by Anonymous
3

Answer:

Calculate the sum and average of a given list in Python

1) All you need to do is to iterate a list using a for loop and add each number to a sum variable.

2) To calculate the average divide the sum by the length of a given list(total numbers in a list)

Explanation:

Try 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])

Answered by ritisha14
2

Python program for arranging the students according to their marks in descending order

Consider a class of 20 students whose names and marks are given to you. The task is to arrange the students according to their marks in decreasing order. Write a python program to perform the task.

Similar questions