diff --git a/assignment-2.py b/assignment-2.py index 150cffb..272b90d 100644 --- a/assignment-2.py +++ b/assignment-2.py @@ -63,8 +63,8 @@ def high_freq(): for j in range(len(marks)): # Iterate through marks list using j again if (marks[i] == marks[j]): temp_count+=1 - if (freq_count < temp_count): # If temp_count is greater than freq_count value, then - freq_count = temp_count # Make freq_count equal to temp_count + if (freq_count < temp_count): # If temp_count is greater than freq_count value, then + freq_count = temp_count # Make freq_count equal to temp_count print(f"\n-----\nHighest frequency is:\t{freq_count}\n-----") def main():