Python Programming Lab Manual
Python Programming Lab Manual
COMPUTER APPLICATIONS
LAB MANUAL
INDEX
Prerequisites:
➢ 19CACN1102 Programming in C
Course Objectives
List of Experiments:
Course Outcomes
At the end of the course students will be able to:
CO 1: Apply the tkinter package in python for GUI application
CO 2: Develop a django project with database connection for real time application
CO 3: Build the numpy packages for arrays in python
19CACN2201-PYTHON PROGRAMMING
LABORATORY
4
AIM
To develop a simple GUI database application using tinker
package
ALGORITHM
STEP 1: Start the Process.
STEP 2: Import the tkinter and sqlite3 packages.
STEP 3: Create a Calculator.
STEP 4: Declare the Necessary Variables Like Add,
Subtract, Multiply, Divide.
STEP 5: Insert the Data for Calculation.
STEP 6: Commit the data and Save the program.
STEP 7: Run the Program.
STEP 8: Stop the process
CODING:
OUTPUT
RESULT:
Thus the above program has been executed successfully.
Aim:
To Install and configure the packages required to develop a website using Django.
Algorithm:
Step 1:Start the project.
Step 2:Create required workspace folder for install Django.
Step 3:Open Power shell and go to project folder.
Step 4:Using pip comment install Django and their packages.
Step 5:Use cd.. comment for accessing Django admin site.
Step 6:Use “manage,py runserver” for running localhost port for running Django server.
Step 7:Stop the server
OUTPUT:
RESULT:
Thus the above program is executed and verified successfully.
Aim:
Develop a Django project working with database connection.
Algorithm:
Step 1:Start the project.
Step 2:Create required workspace folder for install Django.
Step 3:Open Power shell and go to project folder.
Step 4:Using pip comment install Django and their packages.
Step 5:Use cd.. comment for accessing Django admin site.
Step 6:Install SQLite Portable Database and SQLite3 for database connection.
Step 7:Create a new database and enter the datas.
Step 8:Call the database in the command prompt.
Step 9:Run the program.
Step 10:Stop the processCODING:
OUTPUT:
RESULT:
Thus the above program has been executed successfully.
Aim:
To implement the numpy pacakages for arrays in python
Algorithm:
Step 1:Start the project.
Step 2: Install the numpy packages .
Step 3:Open IDLE shell.
Step 4: Import the numpy packages.
Step 5:Create an array using desired variable .
Step 6: Insert the values and perform operations.
Step 7:Print the values of arrays using the variable.
Step 8:Stop the process.
Output:
RESULT:
Thus the above code has been created and executed successfully.
Aim:
To experiment with pandas library to perform data analysis in python.
Algorithm:
Step 1: Start the project.
Step 2: Install required package for pandas.
Step 3: Import pandas in the project.
Step 4: Collect the data set .
Step 5: Start analyse the data using pandas library
Step 6: Collect the report.
Step 7: Stop the project
Output:
RESULT:
Thus the above code has been created and executed successfully.
###END###