-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Expand file tree
/
Copy paththe-python-interface.py
More file actions
20 lines (15 loc) · 922 Bytes
/
the-python-interface.py
File metadata and controls
20 lines (15 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
'''
The Python Interface
100xp
In the Python script on the right, you can type Python code to solve the exercises. If you hit Submit Answer, your python script (script.py) is executed and the output is shown in the IPython Shell. DataCamp checks whether your submission is correct and gives you feedback.
You can hit Submit Answer as often as you want. If you're stuck, you can click Get Hint, and ultimately Get Solution.
You can also use the IPython Shell interactively by simply typing commands and hitting Enter. When you work in the shell directly, your code will not be checked for correctness so it is a great way to experiment.
Instructions
Experiment in the IPython Shell; type 5 / 8, for example.
Add another line of code to the Python script: print(7 + 10).
Hit Submit Answer to execute the Python script and receive feedback.
'''
# Example, do not modify!
print(5 / 8)
# Put code below here
print(7 + 10)