Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Python Basics!
You have completed Python Basics!
Preview
Learn how to use the Python interpreter interactively
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You can actually open up a prompt
that allows you to type Python code
0:00
line by line.
0:01
This is super handy when you just
wanna see what some code does, and
0:02
not actually go and create a whole script.
0:05
This type of interactive programming
prompt is pretty popular in a lot of other
0:07
languages.
0:11
Generically, this type of exploratory
prompt is referred to as a REPL or
0:12
R-E-P-L.
0:17
which stands for Read, Evaluate, Print,
Loop, which is basically what its role is.
0:19
It reads the line, it evaluates it,
it prints the result and
0:23
then it loops back so
you can add another line of code.
0:27
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up