Computational Thinking With Python 2 Lab
Computational Thinking With Python 2 Lab
Thinking With
Python Lab.
DR. SHACHI MALL
Demo of Python from
https://www.python.org/downloads/
• a. Downloading
• b. Installation
• c. execution using command prompt cmd
• d. execution using idle
• e. Python 3 vs python 2 (Conclude that we will be using python 3)
• f. .py file
https://www.python.org/downloads/
Steps
https://in.video.search.yahoo.com/search/
video;_ylt=Awr1TiRyAzVjec8aXKa7HAx.;_ylu=Y29sbwNzZzMEcG9zAzEEdnRpZAMEc2VjA3Bp
dnM-?p=how+to+download+python+for+windows+10&fr2=piv-
web&type=E211IN1485G0&fr=mcafee#id=7&vid=24ab8b5e0fd7029aa27b0542ba60d143&a
ction=view
https://www.programiz.com/python-
programming/examples/area-triangle
Demo of Anaconda
https://www.anaconda.com/products/distribution
• Download
• b. Installation
• c. 32 bit vs 64 bit
• d. Execution of anaconda prompt
• e. Purpose of anaconda prompt (installing packages using conda command)
• f. Demo of spyder
Introduction
• Anaconda is an open-source software that contains Jupyter, spyder, etc that
are used for large data processing, data analytics, heavy scientific
computing.
• Anaconda works for R and python programming language. Spyder(sub-
application of Anaconda) is used for python. Opencv for python will work in
spyder. Package versions are managed by the package management system
called conda.
https://youtu.be/FTkUcSicRIA
Jupyter
• Jupyter Notebook is an open-source web application used to
create and share documents that have live code, equations,
visualizations, and text.
• It’s maintained by the Project Jupyter community. In 2014,
Project Jupyter and Jupyter Notebook became spin-off projects
from IPython and the IPython Notebook.
Notepbook
• It reads the code written line by line 2 then it evaluates that code 3 finds errors
and compiles every block 4 and then prints the result (if any) on the REPL shell.
• Creating an iPython Notebook Click on the New button under the Files tab, and
click Python 3 under the Notebook section.
• This will open a new notebook named Untitled in a new tab, you will probably
want to change the name, and to do so, click on the name written on the very
top of the page and you will be prompted to edit it.
Demo of Ipython Notebooks
https://youtu.be/q_BzsPxwLOE