0% found this document useful (0 votes)
10 views7 pages

Riddhi Python Lab Report

lab report on python

Uploaded by

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

Riddhi Python Lab Report

lab report on python

Uploaded by

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

MADHAV INSTITUTE OF TECHNOLOGY

AND SCIENCE, GWALIOR


(An Autonomous Institute under RGPV Bhopal M.P.)

PROGRAMMING WITH PYTHON


BACHELOR OF TECHNOLOGY/ENGINEERING
IN
ELECTRICAL ENGINEERING

JAN-JUNE 2022

SUBMITTED BY:- SUBMITTED TO:-

Riddhi Bansal Prof. Rahul Sagwal

0901EE201101

DEPARTMENT OF ELECTRICAL ENGINEERING


1. INTRODUCTION TO PYTHON PROGRAMMING.
Python is a popular programming language. It was created by Guido van
Rossum, and released in 1991.

It is used for:

 web development (server-side),


 software development,
 mathematics,
 system scripting.

What can Python do?

 Python can be used on a server to create web applications.


 Python can be used alongside software to create workflows.
 Python can connect to database systems. It can also read and modify files.
 Python can be used to handle big data and perform complex mathematics.
 Python can be used for rapid prototyping, or for production-ready software
development.

Why Python?

 Python works on different platforms (Windows, Mac, Linux, Raspberry Pi,


etc).
 Python has a simple syntax similar to the English language.
 Python has syntax that allows developers to write programs with fewer
lines than some other programming languages.
 Python runs on an interpreter system, meaning that code can be executed
as soon as it is written. This means that prototyping can be very quick.
 Python can be treated in a procedural way, an object-oriented way or a
functional way.

Python Syntax compared to other programming languages

 Python was designed for readability, and has some similarities to the
English language with influence from mathematics.
 Python uses new lines to complete a command, as opposed to other
programming languages which often use semicolons or parentheses.
 Python relies on indentation, using whitespace, to define scope; such as
the scope of loops, functions and classes. Other programming languages
often use curly-brackets for this purpose.
2. WRITE A PROGRAM TO CREATE, CONCATENATE AND
PRINT A STRING AND ACCESSING SUBSTRING FROM A
GIVEN STRING.

3. WRITE A PROGRAM IN PYTHON FOR DEMONSTRATION


OF LIST CREATION AND ITS APPENDING & REMOVAL.
4. WRITE A PROGRAM TO DEMONSTRATE WORKING WITH
TUPLES IN PYTHON.

5. WRITE A PROGRAM TO DEMONSTRATE WORKING WITH


DICTIONARY IN PYTHON.
6. WRITE A CODE TO CREATE FUNCTIONS IN PYTHON.

7. WRITE A CODE TO DEMONSTRATE THE USE OF LOOPS &


CONDITION IN PYTHON.
8. WRITE A CODE TO TAKE INPUT FROM USER & THEN TO
SORT THE NUMBERS USING PYTHON.

9. WRITE A PYTHON PROGRAM TO CONVERT TEMPERATURE


UNITS TO AND FROM DEGREE CELSIUS TO DEGREE
FAHRENHEIT.
10.WRITE A PROGRAM THAT INPUTS A TEXT FILE.THE
PROGRAM SHOULD PRINT ALL OF THE UNIQUE WORDS IN
THE FILE IN ALPHABETICAL ORDER.

***

You might also like