0% found this document useful (0 votes)
39 views12 pages

Practical Journal: Course Name

The document contains 10 programming problems to solve in Python. Each problem is numbered and includes the problem statement, sample code, and sample output. The problems cover basic Python concepts like data types, functions, loops, lists, and more.

Uploaded by

beastthehood
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)
39 views12 pages

Practical Journal: Course Name

The document contains 10 programming problems to solve in Python. Each problem is numbered and includes the problem statement, sample code, and sample output. The problems cover basic Python concepts like data types, functions, loops, lists, and more.

Uploaded by

beastthehood
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/ 12

SWARRNIM SCHOOL OF COMPUTING AND IT

PRACTICAL JOURNAL

Course Name
BCA
Subject Name
Object Oriented Programming-iii
Subject Code
13030501
Student Name

Harsh Kumar
Enrollment No
2114003011
Academic Term/Year
2023-24
INDEX

Sr.no Index Page


no.
1 Create a program to print name mobile number 2
and date of birth in python.
2 Write a program to print python data types like 3
integer, float, string, char.
3 Write a program to change datatype like float to 4
integer or integer to float using type keyword.
4 Write a program to generate basic calculator in 5
python.
5 Write a program to read 3 numbers from the user 6
and find the average.
6 Write a program to check if a number is positive 7
and negative or zero.
7 Write a program print 1 to 10 numbers in for 8
loop.
8 Write a program to generate odd even using 9
functions.
9 Write a program to find the length of the string. 10

10 Write a program to find the largest and smallest 11


number in the list [11,12,13,14,15].

Page|1
PYTHON PRACTICAL

1. Create a program to print name mobile number and date of birth in


python.
 Code:

 Output:

Page|2
2. Write a program to print python data types like integer, float, string,
char.
 Code:

 Output:

Page|3
3. Write a program to change datatype like float to integer or integer
to float using type keyword.
 Code:

 Output:

Page|4
4. Write a program to generate basic calculator in python.
 Code:

 Output:

Page|5
5. Write a program to read 3 numbers from the user and find the
average.
 Code:

 Output:

Page|6
6. Write a program to check if a number is positive and negative or
zero.
 Code:

 Output:

Page|7
7. Write a program print 1 to 10 numbers in for loop.
 Code:

 Output

Page|8
8. Write a program to generate odd even using functions.
 Code:

 Output:

Page|9
9. Write a program to find the length of the string.
 Code:

 Output:

Page|10
10. Write a program to find the largest and smallest number in the list
[11,12,13,14,15].
 Code:

 Output:

Page|11

You might also like