Modify this code

assign1 = float (input('Enter Assignment 1 grade: '))
assign2 = float (input('Enter Assignment 2 grade: '))
Exam1 = float (input('Enter Exam 1 grade: '))
Exam2 = float (input('Enter Exam 2 grade: '))
AssignGrade = (assign1 + assign2) /2
ExamGrade = (Exam1 + Exam2) /2
Final_Grade = .4 * AssignGrade + .6 * ExamGrade
print('Final grade is' , format(Final_Grade, '.2f'))

check if the final grade is within the range 0

display a letter grade depending on the following grade scale:

90 >80 and =70 and 60 and

Also, print a message to inform the user that some invalid grades were input.

I will rate the post with a thumb up depending on completion of the final product. Total Letter grade >90 >80 and =70 and 60 and

"Get 15% discount on your first 3 orders with us"
Use the following coupon
"FIRST15"

Order Now