forked from hanaboltonkaka/python-tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhw 3.py
More file actions
26 lines (19 loc) · 630 Bytes
/
hw 3.py
File metadata and controls
26 lines (19 loc) · 630 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name=raw_input("what is your name? ")
english_mark=input("what is your english mark? ")
maths_mark=input("what is your maths mark? ")
science_mark=input("what is your science mark? ")
all_marks=[english_mark, maths_mark, science_mark]
for x in all_marks:
if x>=80:
score=5
elif 60>= x <=79:
score=4
else:
score=3
print("your total score for english is: %s") % {english_mark}
# combined_grade=grade+grade+grade
# average_score=(score+score+score)/3
# total_score=score+score+score
# print("combined grade is %s")%combined_grade
# print("average score is %d")%average_score
# print("total score is %d")%total_score