# <py-script> The `` element lets you execute multi-line Python scripts both inline and via a src attribute. ## Attributes | attribute | type | default | description | |----|----|----|----| | **src** | url | | Url to a python source file. | ## Examples - Inline `` element: ```html print("Let's compute π:") def compute_pi(n): pi = 2 for i in range(1,n): pi *= 4 * i ** 2 / (4 * i ** 2 - 1) return pi pi = compute_pi(100000) s = f"π is approximately {pi:.3f}" print(s) ``` - `` element with `src` attribute: ```html [[fetch]] files =["compute_pi.py"] ```