For this Question: the user would input a number n, print the mean median mode respectively, for the list of natural numbers till n (included)
note - let mode remain the smallest element in case of non uniqueness.
print mean and median up to 2 decimal places, but let mode remain integer.32
2
1-, I have written this Solution Code: import statistics as st

n = int(input())

lst = [i for i in range(1,n+1)]

print(round(st.mean(lst),2))
print(round(st.median(lst),2))
print(st.mode(lst)), In this Programming Language: Python, Now tell me if this Code is compilable or not?