0% found this document useful (0 votes)
32 views1 page

Mca Python Practicals 26 April 2025

The document is a list of practical exercises for learning Python programming. It covers installation, basic programming concepts, data types, operators, conditional and iterative statements, control transfer statements, and string manipulation. Each practical includes specific tasks and examples to demonstrate the concepts effectively.

Uploaded by

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

Mca Python Practicals 26 April 2025

The document is a list of practical exercises for learning Python programming. It covers installation, basic programming concepts, data types, operators, conditional and iterative statements, control transfer statements, and string manipulation. Each practical includes specific tasks and examples to demonstrate the concepts effectively.

Uploaded by

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

List of Practicals

1. Installation of Python on windows.


2. Demonstrate the basics of Python Programming.
i) Running python interpreter/shell
ii) Running python script in IDLE
iii) Running python script in command prompt
3. Write a python program that uses input and output functions to display the values of
variables, including different data types such as integer, float, complex, Boolean and
string.
4. Demonstrate the working of following functions in Python.
i) id( ) ii) type( ) iii) range()
5. Demonstrate the following Operators in Python with suitable examples.
i) Arithmetic Operators ii) Relational Operators iii) Assignment Operator iv)
Logical Operators v) Membership Operators vi) Identity Operators
6. Demonstrate the following Conditional statements in Python with suitable examples.
i) if statement ii) if else statement iii) if – elif – else statement
7. Demonstrate the following Iterative statements in Python with suitable examples.
i) while loop ii) for loop
8. Demonstrate the following control transfer statements in Python with suitable
examples.
i) break ii) continue iii) pass
9. If the age entered by the user is greater than 18, then print that the user is eligible to
vote otherwise display that the user is not eligible to vote.
10. Write a program to check whether a number is positive, negative and zero.
11. Write a program to display the appropriate message as per the color of signal at the
road crossing.
12. Write a program to print the characters in the string “PYTHON” using for loop.
13. Write a program to print the number in a given sequence using for loop.
14. Write a program to print first 5 natural numbers using while loop.
15. Write a program to print the following patterns.
(i) Number pattern (ii) Star pattern

1 *****
12 ****
123 ***
1234 **
12345 *

16. Write a Python program to demonstrate various ways of accessing the string.
i) By using Indexing (Both Positive and Negative) ii) By using Slice Operator
17. Demonstrate the built in functions which operates on strings in Python with suitable
examples: len( ), title( ), lower( ), upper( ), count( ), find( ), index( ), endswith( ),
startswith( ), isalnum( ), islower( ), isupper( ), isspace( ), istitle( ), lstrip( ),rstrip( ),strip(
), replace( ), join( ), partition( ).

You might also like