Python basics

Python Code

Flowchart

Results