-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestGround.py
More file actions
31 lines (24 loc) · 893 Bytes
/
Copy pathtestGround.py
File metadata and controls
31 lines (24 loc) · 893 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
27
28
29
30
31
# age = 24
# print ("Guess my age, you have 1 chance!")
# guess = int (input ("Guess: "))
# if guess != age:
# print ("Wrong!")
# else:
# print ("Correct")
# # # Dictionary # #
# honkaiElements = {"Physical" : "Palatinus Equinox", "Fire" : "Herrscher of Flamescion", "Ice" : "Herrscher of Reason"}
# print(honkaiElements)
# honkaiElements["Lightning"] = "Herrscher of Thunder"
# print(honkaiElements)
# # Dictionary # #
# csc305marks = {"Ali Bin Abu" : 45, "Aminah Binti Bakar" : 93, "Salmi Binti Salim" : 73, "Kasim Azizan" : 72, "Marzuki Jamson" : 62}
# print(csc305marks)
# totalMarks = 0
# # totalMarks += csc305marks.values()
# totalMarks = sum(csc305marks.values())
# averageMarks = totalMarks / len(csc305marks)
# print("\nTotal Marks =", totalMarks)
# print("\nAverage Marks =", averageMarks)
# countFail = 0
# if csc305marks.values() < 50:
# countFail+=1