0% found this document useful (0 votes)
10 views2 pages

Unit 1 Lab Question Bank

python

Uploaded by

P.tejasmani
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)
10 views2 pages

Unit 1 Lab Question Bank

python

Uploaded by

P.tejasmani
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/ 2

Unit 1

1. Write a program to perform different arithmetic operations on numbers in python.

2. Write a Python program to print the below pattern.

3. Write a python program to convert temperature to and from Celsius to Fahrenheit.

4. Chef has infinite coins in denominations of rupees 5 and rupees 10. Find the minimum
number of coins Chef needs, to pay exactly X rupees. If it is impossible to pay X rupees in
denominations of rupees 5 and 10 only, print − 1 .

5. Write a python program to construct the following pattern using nested for loop:

**

***

****

*****

*****

****

***

**

6. Write a python program to find factorial of a number using recursion

7. Write a python program to find largest of three numbers

8. Write a Python Script to Check whether a given Number is odd or Even.

9. Write a Python program to print the factorial of all numbers between a and b.

10. Create a Python program that prints left Pascal triangle pattern .The program should
accept a number n from the user, which determines the number of rows of the pyramid.
The numbers should increase from 1 at the top to n and then decrease symmetrically on
each row.
11. Write a Python program that prints a right-angled triangle using stars (*). The program should
accept a number n from the user, which determines the number of rows of the triangle.

12. Write a Python program to print the sum of first 100 odd numbers.

13. Write a Python Program to print the Following number Pattern

55555

4444

333

22

14. Write a Python program to calculate Simple Interest, Compound Interest.

15. Write a Python program to print the below Pyramid

**

***

****

*****

16. Develop a Python program to find the sum of odd and even numbers using for statement.

You might also like