0% found this document useful (0 votes)
10 views

Python_Documentation(intro)

This document is a project report on Python programming submitted by Ayan Pal. It includes an acknowledgment section, an introduction to Python's features and applications, and a series of example codes demonstrating various programming tasks. The examples cover basic operations, conversions, and class definitions, showcasing Python's versatility and ease of use.

Uploaded by

sudeshnabbs
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Python_Documentation(intro)

This document is a project report on Python programming submitted by Ayan Pal. It includes an acknowledgment section, an introduction to Python's features and applications, and a series of example codes demonstrating various programming tasks. The examples cover basic operations, conversions, and class definitions, showcasing Python's versatility and ease of use.

Uploaded by

sudeshnabbs
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 12

PYTHON PROGRAMMING

Submitted By

Ayan Pal
TABLE OF CONTENTS

Serial No. Content Page No.


1. Acknowledgement 3

2. Introduction 4

3. Code 5-25
ACKNOWLEDGEMENT

I take this opportunity to express my deep gratitude and sincerest thanks to


my project mentor, Shib Shankar Ghosh, for giving his valuable suggestions,
helpful guidance and encouragement in the execution of this project work.

I would like to give a special mention to my colleagues for their moral


support. Last but not the least, I am grateful to all the faculty members of PBA
INSTITUTE for their support.
INTRODUCTION
Python is a high-level, interpreted programming language known for its
simplicity and readability. Created by Guido van Rossum in 1991, it has gained
widespread popularity due to its easy-to-learn syntax and versatility. Python
supports multiple programming paradigms, including procedural, object-
oriented, and functional programming, making it an ideal choice for beginners
and experienced developers alike. Its extensive standard library and active
community contribute to its growing adoption across various domains.

One of Python’s key strengths is its application in diverse fields such as web
development, data science, artificial intelligence, machine learning, automation,
and game development. Popular frameworks like Django and Flask facilitate
web development, while libraries such as NumPy, Pandas, and TensorFlow
make it a powerful tool for data analysis and AI research. Python’s ability to
integrate with other languages and platforms further enhances its utility in both
academic and industrial settings.

Python’s simplicity does not compromise its efficiency. It provides dynamic


typing, automatic memory management, and a vast collection of third-party
libraries, enabling rapid development and deployment. Its open-source nature
ensures continuous improvements, and its adaptability makes it a preferred
choice for modern computing. With an ever-growing community and increasing
industry demand, Python remains a fundamental programming language in
today’s technological landscape.
CODES
1. Write a program to input four numbers and print their sum on the screen .
CODE:

OUTPUT:

2. Write a program covert centigrade to Farahenite and Farahenite to


centigrade .

{C=5/9(F-32) and F=1.8*C+32}

CODE:

OUTPUT:
3.Write a program to accept the marks of student in Physics, Chemistry and
Biology. Display the total marks and average marks
CODE:

OUTPUT:

4.Write a program to find the volume of cube. Volume=l*w*h


CODE:

OUTPUT:
5. Write a program to accept a number and check: (a) whether the number is
divisible by 2 and 5. (b) Whether the number is divisible by 2 but not by 5. (c)
the number is divisible by 5 but not by 2. The program must display the
message accordingly.
CODE:

OUTPUT:
6. Write a program to find largest of two numbers.
CODE:

OUTPUT:

7. Write a program to accept a Lower case string and convert into Upper case
String.

CODE:

OUTPUT:
8. Write a Program to input name, middle name and surname of a person and
print only the initials.

CODE:

OUTPUT:

9. Write a program to accept a word/ String and display the new string after
removing all the vowels present in it.

CODE:

OUTPUT:
10. Write a Python program to check a string represent an integer or not.

CODE:

OUTPUT:

11. Write a Python program to sum of two given integers. However, if the
sum is between 15 to 20 it will return 20.

CODE:

OUTPUT:
12. Write a Python script to check if a given key already exists in a dictionary.

CODE:

OUTPUT:

13. Write a class with following specifications: Class name: employee Data
members: String name, float basic; Member functions: void getdata(): to
accept the name and basic pay Sub Class salary inherit Class employee . Data
members : float da, hra, gross, net; Member Functions: void calculate(): to
find the followings: da=50% of basic , hra= 10% of basic , gross= basic + da +
hra, pf=8.33% of (basic+da) net = gross – pf. void display() : to display the
playslip.
CODE:
OUTPUT:

You might also like