Python Project Practical Full
Python Project Practical Full
Objective:
Tools Used:
Source Code:
marks = []
for i in range(5):
marks.append(m)
total = sum(marks)
average = total / 5
grade = 'A'
grade = 'B'
grade = 'C'
Python Project Practical Notebook
else:
grade = 'D'
print("Name:", name)
print("Grade:", grade)
Output Explanation:
It takes 5 subject marks and shows total, average and grade based on average score.
Conclusion:
This project helps to understand how to take input in list and apply conditions.
Objective:
Tools Used:
Source Code:
# Simple Calculator
return a + b
return a - b
return a * b
return a / b
if op == '+':
elif op == '-':
elif op == '*':
elif op == '/':
else:
print("Invalid operator")
Output Explanation:
Python Project Practical Notebook
Conclusion:
This project helps to understand how to use functions and take user input in Python.
Objective:
Tools Used:
Source Code:
tasks = []
while True:
if choice == '1':
tasks.append(task)
print("Your Tasks:")
print(f"{i}. {t}")
break
else:
print("Invalid choice!")
Output Explanation:
User can add tasks and view the current to-do list. The loop continues until user exits.
Conclusion:
This project helps to understand list usage and menu-driven programming in Python.
Objective:
Tools Used:
Source Code:
import random
Python Project Practical Notebook
if guess == number:
else:
Output Explanation:
Conclusion:
Objective:
Tools Used:
Source Code:
books = []
while True:
if ch == '1':
books.append(book)
elif ch == '2':
print("Books in library:")
for b in books:
print("-", b)
elif ch == '3':
break
else:
print("Invalid choice")
Output Explanation:
User can add books to a list and view them. Works through a menu loop.
Conclusion: