0% found this document useful (0 votes)
2 views6 pages

Python Practical

The document outlines a series of practical programming exercises in Python, including tasks such as displaying text, calculating square roots, converting data sizes, and performing arithmetic, logical, and bitwise operations. It also includes programs for checking the largest of three numbers, determining leap years, and assessing whether a number is positive, negative, or zero. Each task requires a program and expected output, but specific code examples are not provided.

Uploaded by

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

Python Practical

The document outlines a series of practical programming exercises in Python, including tasks such as displaying text, calculating square roots, converting data sizes, and performing arithmetic, logical, and bitwise operations. It also includes programs for checking the largest of three numbers, determining leap years, and assessing whether a number is positive, negative, or zero. Each task requires a program and expected output, but specific code examples are not provided.

Uploaded by

sonalihotkar9
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd

Practical No :- 02

Q. Practical Related Questions.


3. Write a Python program to display “MSBTE” using Script Mode.

Practical No:- 03
Q. Practical Related Questions
4. Write a program to find the square root of a number.

Program :-

Output:-

5. Write a program to convert bits to Megabytes, Gigabytes and Terabytes.

Program:-

Output:-
6. Write a program to swap the value of two variables.

Program:-

Output:-

7. Write a program to calculate surface volume and area of a cylinder.

Program :-

Output:-
Practical no :-03 Write simple Python program using operators: Arithmetic Operators,
Logical Operators, Bitwise Operators
[Link] Using Arithmetic Operators :-
Program:-

Output:-

[Link] Using Logical Operators.


Program:-

Output:-
[Link] using Bitwise Operators:-
Program:-

Output:-

Practical No:-04
[Link] Related Questions

2. Write a program to check the largest number among the three numbers.

Program:-

Output:-

3. Write a program to check if the input year is a leap year of not 5.


Program:-
Output:-

5. Write a program to check if a Number is Positive, Negative or Zero.


Program:-

Output:-

6. Write a program that takes the marks of 5 subjects and displays the grades.
Program:-

You might also like