#compsci #python 

## The Interactive Prompt
The Interactive Prompt is Python's own command line. It looks like that:
![[Pasted image 20220723200055.png]]

It's basically the simplest IDE you could think of, supporting the most basic [[Python program execution|code execution]]. It can even support loops like this:
![[Pasted image 20220723200533.png]]

## Unix executable file
```bash
#!/usr/local/bin/python
print('This is a ' + 'test')
```

This is how Python files look in a [[Unix executable file]].

There's also a trick to avoid hardcoding the path to the Python interpreter by using [[env]]:
```bash
#!/usr/bin/env python
# there's a script
```

## Module Imports and Reloads
![[Python modules#^c29627]]
![[Python modules#^52352a]]
![[Python modules#^93961e]]
![[Python modules#^3814ba]]

## [[IDLE]]

## Embedding Calls
You can run Python in other applications or even using other programming languages - **embedded Python programs**