0% found this document useful (0 votes)
2 views4 pages

Python CS ScriptMode

The document outlines two working modes in Python: interactive mode for temporary tasks and script mode for creating and saving programs with a .py extension. It provides important commands and keyboard shortcuts for creating, saving, opening, closing, exiting, running, and viewing Python programs. Additionally, it includes an example program that displays a greeting message.

Uploaded by

amansharma123089
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views4 pages

Python CS ScriptMode

The document outlines two working modes in Python: interactive mode for temporary tasks and script mode for creating and saving programs with a .py extension. It provides important commands and keyboard shortcuts for creating, saving, opening, closing, exiting, running, and viewing Python programs. Additionally, it includes an example program that displays a greeting message.

Uploaded by

amansharma123089
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Lab Ac vity 7 – Python

Topic - Working modes in Python


1. Interac ve mode – for temporary
work. For example

2. Script mode – to create programs


and can be used later a er saving.
Each program file has a extension
.py for example
Some important commands and keyboard shortcut:

Purpose Command/shortcut
1. Create File Menu -> New File
New Python Or
Program file. Ctrl +N
2. Save File -> Save
Ac ve Or
Program Ctrl +S
3. To open File -> Open
exis ng/saved Or
programs Ctrl +O
4. To close File -> close
ac ve Or
program Alt +F4
5. To File ->exit
exit/close the Or
Python Ctrl +Q
6. To run Run Menu -> Run
the typed module
Python Or
Program F5
7. To view Run menu-> Python
the program Shell
output Or
(interac ve Alt +tab
mode)

Write and run following python


program to show your name and
say:
hello guys! Welcome in the world
of Python Programming
Answer with output

Code

Output

You might also like