A variable that overwrote a module name
Predict the output · Medium · §12.2, §12.3 from, as, and the star
This code tries to adjust a subject score using its square root (the square root of the score times 10). Predict the output.
Code
import math
scores = {"korean": 81, "math": 64}
math = scores["math"]
print("Math score:", math)
print("Adjusted score:", math.sqrt(math) * 10)Solve this problem in your browser
Python runs in your browser and checks your answer right away. Hints and the answer are on the problem page.