Codecademy - Python: Tutorial #12

preview_player
Показать описание
Enroll for coding exercises, projects, tutorials, and courses...

This is part 12 of the Codecademy Python Walkthrough Tutorial. It covers topics like OOP, object oriented programming, dictionaries as objects, lists inside dictionaries, stepping through algorithms, dependent functions, nested function calls, built-in functions, weighted averages, for loops, control flow, conditional statements advanced functional concepts, and much more!

======================= ABOUT PYTHON CODECADEMY SERIES =================

The target audience are beginners or developers looking to pick up Python. I also emphasize the importance of writing good code and I go through the first part really fast.

I will literally be going through every single thing and breaking it down for you so there is nothing for you that would be scary. You can watch me do it and you can simply follow along you will learn ALL the basics. I swear I wish something like this was out there when I started learning because everyone else explains things in such a complicated way and makes it so boring! I honestly think programming is based upon exploration and creativity rather than some mathematical/logical genius frame of mind! I spent a lot of hard work in making this so I hope you guys enjoy and learn something out of it while having fun! This is targeted towards beginners, for developers looking to learn python, or for individuals looking for a refresher on basics in computer programming!!

============================= CHANNEL INFO ============================

Enroll for coding exercises, projects, tutorials, and courses...

Clever Programmer
Snapchat ► Rafeh1
Рекомендации по теме
Комментарии
Автор

how i paused the vid and tried myself resulting in the right and with a diff function of get_letter_grade(score) :

def get_letter_grade(score):
score=0
for student in students:
score=get_average(student)
if score>=90:
return "A"
elif score>=80 and score<90:
return"B"
elif score>=70 and score<80:
return "C"

elif score>=60 and score<70:
return "D"

else:
return "F"

print(get_letter_grade(lloyd)

"LEARNING FROM UR OLD ( BUT GOLD) VIDEOS <3"

danyalzaki
Автор

really appreciate that you're trying to break things into the tiniest little details for a noob like me. this exercise was such a sweat for me.

coffeebutch
Автор

your are so good at explaining pls keep going never

alisterdavid
Автор

Great video!

I made this lesson on Codecademy, but all those lists, dictionary and functions, one inside the other were really confusing me to the point that I stopped to understand what I was doing, even though I understood the previous lessons.

One question: What's the difference between *parameter* and *argument* ? Codecademy seems to use then indiscriminately.

Thanks for your great job.

carlosbarreto
Автор

bam! first. This series is off the hook!!!!

zeshansyed
Автор

Amazing! Lot of stuff makes sense once u get here. Using Python 3 alongside great idea

jczapa
Автор

Great knowledge transfer skills, Qazi.

peloyarengphoko
Автор

lloyd = {
"name": "Lloyd",
"homework": [90.0, 97.0, 75.0, 92.0],
"quizzes": [88.0, 40.0, 94.0],
"tests": [75.0, 90.0]
}
alice = {
"name": "Alice",
"homework": [100.0, 92.0, 98.0, 100.0],
"quizzes": [82.0, 83.0, 91.0],
"tests": [89.0, 97.0]
}
tyler = {
"name": "Tyler",
"homework": [0.0, 87.0, 75.0, 22.0],
"quizzes": [0.0, 75.0, 78.0],
"tests": [100.0, 100.0]
}

# Add your function below!
def average(numbers):
total = sum(numbers)
total = float(total)
return total / len(numbers)
def get_average(student):
homework = average(student["homework"])
quizzes = average(student["quizzes"])
tests = average(student["tests"])
weighted_homework = homework * .10
weighted_quizzes = quizzes * .30
weighted_tests = tests * .60
return weighted_homework + weighted_quizzes + weighted_tests
def get_letter_grade(score):
if score >= 90:
return "A"
elif 90 > score >= 80:
return "B"
elif 80 > score >= 70:
return "C"
elif 70 > score >= 60:
return "D"
else :
return "F"
print
print get_average(lloyd)

cder
Автор

I understand because of you man I love you

akshaypawar
Автор

Getting more in depth here, great. Did you know that only in videos #1 #3 and #6 are the only times so far you didn't start with "Whazzup?" (or similar) LOL take care man, good job.... lol

davidrobertson
Автор

Is sum(numbers) = total the same thing as total = sum(numbers) ?

Ps great vid

antonnig
Автор

where is no 13? plz give the link / thnx :)

sharajpanwar
Автор

5:55 then why doesent the 3 look like 3.0

talenjacov
Автор

lloyd = {
"name": "Lloyd",
"homework": [90.0, 97.0, 75.0, 92.0],
"quizzes": [88.0, 40.0, 94.0],
"tests": [75.0, 90.0]
}
alice = {
"name": "Alice",
"homework": [100.0, 92.0, 98.0, 100.0],
"quizzes": [82.0, 83.0, 91.0],
"tests": [89.0, 97.0]
}
tyler = {
"name": "Tyler",
"homework": [0.0, 87.0, 75.0, 22.0],
"quizzes": [0.0, 75.0, 78.0],
"tests": [100.0, 100.0]
}

# Add your function below!

def average(numbers):
total = sum(numbers)
total = float(total)
total = total / (len(numbers))
return total


def get_average(student):
homework = average(student["homework"])
quizzes = average(student["quizzes"])
tests = average(student["tests"])
return (0.1 * homework + 0.3 * quizzes + 0.6 * tests)


def get_letter_grade(score):
if score >= 90:
return "A"
elif score >= 80:
return "B"
elif score >= 70 and score < 80:
print "C"
elif score >= 60:
return "D"
else:
return "F"
print

denizalan
join shbcf.ru