In this Python tutorial, we demonstrate how to write a program that calculates the average marks of five students. This beginner-friendly project is perfect for those new to programming and looking to enhance their Python skills. By the end of this video, you'll have a solid understanding of basic arithmetic operations and handling multiple inputs in Python. Don't forget to like, share, and subscribe for more Python tutorials and projects!
*Steps of the Algorithm:*
1. **Input Handling**: Prompt the user to enter the marks of five students.
2. **Sum Calculation**: Calculate the sum of the marks using the `+` operator.
3. **Average Calculation**: Calculate the average by dividing the sum by the number of students.
4. **Output Result**: Print the average marks in a formatted manner.
*Detailed Steps:*
1. **Input Handling**:
Use the `input()` function to take input for each student's marks.
Convert the input from string to integer using the `int()` function.
2. **Sum Calculation**:
Use the `+` operator to add the marks of all five students.
3. **Average Calculation**:
Divide the total sum of marks by the number of students (5).
4. **Output Result**:
Use the `print()` function to display the average marks.
En esta página del sitio puede ver el video en línea Python Tutorial: Calculate Average Marks of 5 Students | Beginner Python Project de Duración hora minuto segunda en buena calidad , que subió el usuario Python Guruji 25 julio 2024, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 404 veces y le gustó 5 a los espectadores. Disfruta viendo!