Just Weight and see(continuation mark)


#1



Hello everyone.I've stucked on this type of problem where is always continuation mark.


Probably my code completly wrong.However it should work i dont know


Replace this line with your code. 

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]
}

def get_average(student):
    homework = average(student["homework"])
    tests = average(student["tests"])
    quizzes = average(student["quizzes"])


    return  0.1 * average(student["homework"]) +  \0.3 * average(student["quizzes"]) + \0.6 * average(student["tests"])


#2

The only character that can appear after a continuation mark is a line break. Insert hard returns after each one.


#3

Aaa.Ok I think i understand.Do you mean like this
a = '1' + '2' + '3' + \
'4' + '5'
Which is continuing where was the line break?


#4

Thanks a lot.I have solved


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.