Ask coding questions

← Back to all posts
can't figure out line 27 and on
ecarroll42 (2)

I'm doing a project for my computer science class and im just lost at this point. Please help in anyway possible and maybe explain how you did it if possible.

Commentshotnewtop
morganny16 (27)

You also need to make all the inputs (except name) yo ints
i.e. T4 = int(input("Enter fourth test grade:"))

morganny16 (27)

or float for the ones you want as a decimal

ecarroll42 (2)

thank you! ill try this as soon as i get out of my next class @morganny16

ecarroll42 (2)

That worked but now I'm confused on how i would put all of that into and if/elis statement to make it a letter grade. Can you [email protected]

morganny16 (27)

if grade(or whatever the variable is called) >= 90:
(indent)print("A")
elif grade >= 80:
(indent)print("b")
elif grade >= 70:
(indent)print("c")

and so on

morganny16 (27)

You need a colon after 90 on line 37

DeniseCollazo (0)

You forgot the 'print' output at the end for the variables?

ecarroll42 (2)

this is written through Python by the way