0% found this document useful (0 votes)
49 views32 pages

Python Pratical by Anubhav

This document appears to be a student's practical file for a Python programming class. It includes 13 Python programs with source code and outputs, as well as flow charts describing the program logic. Each program is numbered and includes space for notes. The file appears to document the student's classwork and projects over the course of the academic year.

Uploaded by

hackasticguy
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)
49 views32 pages

Python Pratical by Anubhav

This document appears to be a student's practical file for a Python programming class. It includes 13 Python programs with source code and outputs, as well as flow charts describing the program logic. Each program is numbered and includes space for notes. The file appears to document the student's classwork and projects over the course of the academic year.

Uploaded by

hackasticguy
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/ 32

[PYTHON PROGRAM FILE]

Academic session-2023-2024

School of Excellence, Rohini sec-23


PRATICAL FILE
INTRODUCTION
❖ Name : Anubhav

❖ Class : 12th A

❖ Board Roll n o :

[SOURCE CODE]Page 1
[PYTHON PROGRAM FILE]

❖ Student id : 20170231242

❖ Subject Teacher : Mr.Rahul Bhatia sir

Program .1
Source code:
Output:

[SOURCE CODE]Page 2
[PYTHON PROGRAM FILE]

Notepad:

[SOURCE CODE]Page 3
[PYTHON PROGRAM FILE]

Flow chart.1
Start

Open the file


read it only

is Print the same


Print the # at
a character character
the Place of
space Is space

End

[SOURCE CODE]Page 4
[PYTHON PROGRAM FILE]

Program .2
Source code:

Output:

Notepad:

Flow
chart.2
Start
[SOURCE CODE]Page 5
[PYTHON PROGRAM FILE]

Open the file and


read it only

Vowel=0
Consonant=0
Lowercase=0
Uppercase=0

If
characte
r is
lower

Lowercase+=1 Uppercase+=1

Turn each character


into lower case

If
characte
r is
vowel
Consonant=+1
Vowel+=1

Print all the file content.

Print values of vowel,

Consonant, lowercase

and uppercase

End

[SOURCE CODE]Page 6
[PYTHON PROGRAM FILE]

Program .3
Source code:

Output:

Notepad:

[SOURCE CODE]Page 7
[PYTHON PROGRAM FILE]

Flow
chart.3
Start

Open a file and read


Only and open a file
and write only

If a line
have letter
‘’a’

Write that line in


another file and Pass
remove that line
from original loation

[SOURCE CODE]Page 8
End
[PYTHON PROGRAM FILE]

p Program .4
Source code:

Output:

[SOURCE CODE]Page 9
[PYTHON PROGRAM FILE]

Flow chart.4

[SOURCE CODE]Page 10
[PYTHON PROGRAM FILE]

Program .5
Source code:

Output:

[SOURCE CODE]Page 11
[PYTHON PROGRAM FILE]

Flow chart.5

[SOURCE CODE]Page 12
[PYTHON PROGRAM FILE]

Program .6
Source code:

Output:

[SOURCE CODE]Page 13
[PYTHON PROGRAM FILE]

Flow chart.6

33

[SOURCE CODE]Page 14
[PYTHON PROGRAM FILE]

p Program .7
Source code:

Output:

[SOURCE CODE]Page 15
[PYTHON PROGRAM FILE]

Flow chart .7

[SOURCE CODE]Page 16
[PYTHON PROGRAM FILE]

Program .8
Source code:

Output:

[SOURCE CODE]Page 17
[PYTHON PROGRAM FILE]

Flo
w chart .8

[SOURCE CODE]Page 18
[PYTHON PROGRAM FILE]

Program .9
Source code:

[SOURCE CODE]Page 19
[PYTHON PROGRAM FILE]

Output:

[SOURCE CODE]Page 20
[PYTHON PROGRAM FILE]

Flow
chart .9

[SOURCE CODE]Page 21
[PYTHON PROGRAM FILE]

Program .10
Source code:

Output:

[SOURCE CODE]Page 22
[PYTHON PROGRAM FILE]

Flow chart .10

[SOURCE CODE]Page 23
[PYTHON PROGRAM FILE]

Program .11
Source code:

Output:

[SOURCE CODE]Page 24
[PYTHON PROGRAM FILE]

Flow chart .11

[SOURCE CODE]Page 25
[PYTHON PROGRAM FILE]

Program .12
Source code:

Output:

[SOURCE CODE]Page 26
[PYTHON PROGRAM FILE]

Flow chart .12

[SOURCE CODE]Page 27
[PYTHON PROGRAM FILE]

Program .13
Mysql query:

Output:

[SOURCE CODE]Page 28
[PYTHON PROGRAM FILE]

Program .14
Source code:

[SOURCE CODE]Page 29
[PYTHON PROGRAM FILE]

[SOURCE CODE]Page 30
[PYTHON PROGRAM FILE]

Output:

[SOURCE CODE]Page 31
[PYTHON PROGRAM FILE]

Program .15

[SOURCE CODE]Page 32

You might also like