Now I am switched to the advanced programming where I will be learning OOPs (Object-oriented-Programming) and PP (procedural-programming).
I have already learned define function named as def (variable) :
This can help a coder to optimize the code instead of writing big lines of code.
Here is a sample of code I made of VS code
The code is below
# Giving averages to the students
def grade_students(students_numbers):
average = {}
for keys, values in students_numbers.items():
average[keys] = sum(values)/len(values)
print(average)
students = {“Ali”:[65,98,70],”Babur”:[33,50,99]}
grade_students(students)
Search my topics
Recent Posts
- Cosmic Chronicles:Blackholes and Wormhole February 7, 2026
- Cosmic Chronicles:Milky Way Madness February 6, 2026
- Cosmic Chronicles:Legend of Planets February 5, 2026
- New Year 2026 – A new Beginning for all January 1, 2026
- The Abyss: Earth’s great graveyard December 26, 2025
Categories
- All Categories
- All Categories
- Animals and Nature
- Book reviews
- Bubloo Scientist Updates
- Chemistry
- Coding and languages
- Computer Projects
- Food and Nutrition
- Geography
- Historical Science
- History
- Huzaifa's Blogs
- IT
- Mathematics
- Modernized world (New things)
- My business
- My travels
- Physics
- Science and Technology
- Space and Atmosphere
- Sports
Leave a Reply