首页 > 解决方案 > 我有一个“错误令牌”错误,谁能告诉我为什么?(代码)

问题描述

Ideal= int(input("What grade do you want on your next assignment?"))

Current= int(input("What is your current grade in the class?"))
weight = int (input("What is the weight of the assignment (how much of your grade is it worth)?"))
print Ideal

print Current

print weight

Final_grade = Ideal − (( 1 − weight ) * Current)* weight

print "You will need to get a" , Final_grade , "on your next assignment to recieve a" , Current , "in this class"

标签: python

解决方案



推荐阅读