7. Overview of Python
7. Overview of Python
com
2 Features of Python
5 Working in Python
6 Interactive mode
Page 1 of 8
Unit I: Computational Thinking and Programming - 1 Visit to website: learnpython4cbse.com
Page 2 of 8
Unit I: Computational Thinking and Programming - 1 Visit to website: learnpython4cbse.com
Page 3 of 8
Unit I: Computational Thinking and Programming - 1 Visit to website: learnpython4cbse.com
Caution When you are given the option of unchecking any “optional”
components, don’t uncheck any.
Working in Python:
Interactive mode: Interactive Mode,
In Python we can work as the name suggests, allows us to
In 2 ways: interact with OS. For working in the
interactive mode, we will start Python
on our computer.
Python Shell
Script mode: In script mode, we type
Python program in a file and then use
the interpreter to execute the content
from the file. Working in interactive
mode is convenient for beginners.
Page 4 of 8
Unit I: Computational Thinking and Programming - 1 Visit to website: learnpython4cbse.com
After starting IDLE from start menu, IDLE open its window
Page 6 of 8
Unit I: Computational Thinking and Programming - 1 Visit to website: learnpython4cbse.com
3. Save it (^S)
Page 7 of 8
Unit I: Computational Thinking and Programming - 1 Visit to website: learnpython4cbse.com
4. If the code is written correctly, you will see the output in the Python
Shell window
Page 8 of 8