← Lesson
Functions and Graphs
Joeven
Run
Reset
Python loads on first run
def loss(w): return (w - 3) ** 2 print(" w loss graph") for w in range(-1, 8): y = loss(w) bars = int(y) print(w, y, "#" * bars)
Run to execute this in your browser. Nothing is sent to a server.