From the course: Cisco CCNP Enterprise: ENCOR v1.2 (350-401) Cert Prep

Unlock this course with a free trial

Join today to access over 25,600 courses taught by industry experts.

The interactive interpreter

The interactive interpreter

In our previous video, we got Python installed. Specifically, we installed version 3.8.1 of Python. And we saw that if I just typed in Python at my command prompt, it's gonna run the version that I already had installed on my Mac 2.7. So if I want to run a specific version of Python, I need to specify it. Let's get out of this version by saying exit. By the way, exit, that's a function. And a function has to begin and end with an open and close parentheses. So I'll do an open parentheses close parentheses and press enter now if I want to run some version of Python 3.8 I'll say Python 3.8 and we can see that I'm now running version 3.8.1 and we're now sitting at the Python interactive interpreter And I love this environment because I remember back in college when I was learning to program in the C programming language I would have to write a program I would then compile it, and then I could run the executable that I had compiled, but Python is super convenient. We get to give a…

Contents