Assign your Term1 Marks of English to variable MARK1 and Term2 Marks of English to variable MARK2. Write a program to store total marks in variable Total and display the result.
pls tell me the answers
expects and ace
Answers
Answered by
4
Langauge:
Python
Program:
MARK1 = float(input("Term 1 English marks: "))
MARK2 = float(input("Term 2 English marks: "))
total = MARK1+MARK 2
print(total)
Output:
Term 1 English marks: 80
Term 1 English marks:70
150.0
Explanation:
- Takes input in MARK1
- Takes input in MARK 2
- save in total
- print total.
PS:
I made a program that takes input.
If you want you can directly assign your marks in the program in the following way:
MARK1 = 65
MARK2 = 70
total = MARK1+MARK 2
print(total)
Similar questions