user:amalgamated_marks
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
user:amalgamated_marks [2024/10/17 01:13] – removed appledog | user:amalgamated_marks [2025/01/13 06:32] (current) – appledog | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | = Amalgamated Marks | ||
+ | == Python Program | ||
+ | < | ||
+ | t = [0 for _ in range(50)] | ||
+ | |||
+ | # array of marks goes here | ||
+ | a = [ " | ||
+ | |||
+ | for m in a: | ||
+ | if ':' | ||
+ | m, p = m.split(':', | ||
+ | t[int(m)] += int(p) | ||
+ | else: | ||
+ | if m > 0: | ||
+ | t[m] = += 1 | ||
+ | else: | ||
+ | t[abs(m)] -= 1 | ||
+ | |||
+ | for x in range(50): | ||
+ | print (str(x) + ", " + str(t[x])) | ||
+ | </ |
user/amalgamated_marks.1729127598.txt.gz · Last modified: by appledog