Ian -- you can se the { } button on the toolbar when you post (or edit) a question or answer, to make your answer be formatted as code instead of regular text -- that will fix the indenting problems.
import math
def grade_val(x):
return 10 * (math.log2(x) - 2)
points = int(input("Enter current points: "))
result = grade_val(points)
print("your result:", result)