Below is a program to create a list of students’ marks with user-defined values and find the maximum marks of subject.

n = int(input("Enter the number of subjects :"))
l=[]
for i in range (n) :
    m=int(input("Enter the marks obtained in subject " +str(i+1)+ " : "))
    l.append(m)
print("congratulations !! your maximum marks scored is " +str(max(l)))

Python program to get max numbers

Output:

Python program to get max numbers

Explore More

AI Roadmap using Python

Python is a great foundation for diving into AI! To take the next step in your AI learning journey, here’s a roadmap to guide you. 1. Strengthen Your Math Skills

Python 10 Programs for Beginners

Program 1:Write a program to create a 2D array using NumPy. Output: Program 2: Write a program to convert a python list to a NumPy array. Output: Program 3: Write a program to create matrix of 3×3 from 11 to 30. Output: Program 4: Write a program to create a data frame to store data of candidates who appeared in

Create new Python Virtual environment

Create a new virtual environment  Python 3 allows you to manage separate package installations for different projects. It creates a “virtual” isolated Python installation. When you switch projects, you can