Python (Lalit)
Python (Lalit)
0|Page
INDEX
Sr. No. Content Page No.
1 Install Python and explore various popular IDE like IDLE, PyCharm, 2-7
and Anaconda.
1|Page
1- PyCharm installation and exploration
PyCharm is a dedicated Python Integrated Development Environment (IDE) providing a wide range of
essential tools for Python developers, tightly integrated to create a convenient environment for productive
Python, web, and data science development from Jetbrains.
Python developers choose PyCharm for Windows due to simplicity and predictability. PyCharm
is compatible with any version of Python, and may even be installed before choosing a
distribution of the Python interpreter.
Start the installation process step by step by allowing the options as per your requirement:
2|Page
Give path or it will be default:
3|Page
Check/uncheck the box for shortcuts/Associations/context Menu updation etc:
Select the folder/new folder in which you would like to create the program’s shortcut:
4|Page
Process will be automate now:
5|Page
Access the pycharm in you system , Goto to file menu for creation of new project:
Give path for the project file to be stored,you can change the enviourment here also can can the option for
global package inheritance and avilablity to all:
6|Page
Write the program here and hit run button to execute the code :
You will get the output window in downside displaying the output:
While writing the code there is auto suggestion for inbuilt keyword in PyCharm which is a great feature to
save the your time for writing the code as by pressing Enter suggested word will be written from the
Validation list displayed.
7|Page
2 - Assignment to perform various operations
(a) Find maximum from a list :
Code:
Output:
Output:
8|Page
(c) Square root of two numbers:
Code:
Output:
Output:
9|Page
(e) Print first N prime numbers:
Code:
Output:
Output:
10 | P a g e
(g) Print the Fibonacci series:
Code:
Output:
11 | P a g e
3 – Various operation on string
#Creation
Code:
Output:
#UpdationAndConcatenation
Code:
Output:
# Deletion
Code:
12 | P a g e
Output:
13 | P a g e
4 – Create a list L & perform Operations
#Code
#Create List L = [10,20,30]
Output:
Output:
Output:
14 | P a g e
c. sum all number in list L
Code:
Output:
Output:
15 | P a g e
e. Delete the list L
Code:
Output:
16 | P a g e
5 – Create a dictionary
OutPut:
OutPut:
OutPut:
17 | P a g e
c. Check whether a key present in D.
Code:
OutPut:
OutPut:
e. Clear dictionary D.
Code:
OutPut:
18 | P a g e