Run code vs. submit answer
On the right, you'll see the area where you can write and execute Python scripts and the IPython console. In this exercise, you will practice submitting code. The output of this code will be shown in the IPython Shell. The IPython Shell can also be used interactively to type and execute commands. The code entered directly in IPython shell is not checked for correctness, so it is a great place to experiment.
You can submit your script to check for correctness by hitting Submit Answer. Note that you can also use Take Hint or Show Answer if you're stuck.
Diese Übung ist Teil des Kurses
Introduction to Python for Finance
Anleitung zur Übung
- Hit the Run Code button and observe that the code in your script is executed in the IPython Shell.
- Next, hit the Submit Answer to execute the code and check it against the solution.
Interaktive Übung
Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.
# Example 1, do not modify!
print(8 / 2)
# Example 2, do not modify!
print(2**2)