0% found this document useful (0 votes)
7 views

Index Python

THIS IS PYTHON INDEX FOR EXTERNAL FILE 3RD SEMESTER BCA STUDENT

Uploaded by

imemyselfff01
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Index Python

THIS IS PYTHON INDEX FOR EXTERNAL FILE 3RD SEMESTER BCA STUDENT

Uploaded by

imemyselfff01
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Index

S. No. List of Practical’s Date Sign


1. Write a program to enter two integers, and two floating
numbers, and then perform all arithmetic operations on
them.
2. In this scenario, two friends are eating dinner at a restaurant.
The bill comes in the amount of 547.28. The friends decide
to split the bill evenly between them, after adding a 15% tip
for the service. Calculate the tip, the total amount to pay, and
each friend's share, then output a message saying "Each
person needs to pay: " followed by the resulting number.
3. This code is supposed to take two numbers, divide one by
another so that the result is equal to 1, and display the result
on the screen. Write the code.
4. Write a program that receives a name, and then returns a
greeting based on whether or not that name is "Taylor".
5. Write a program to check if the no given by the user is odd
or even
6. Write a program using the bitwise operator
7. Write a program to find the largest no out of 2 numbers.
8. Write a program to find the largest no out of 3 numbers.
9. Find the sum of odd no, and even no from a range between 1
to 101.
10. Write a program to take 5 subjects' marks, and compute the
total, average, and grade based on the marks.
11. Write a program to input any choice and to implement the
following.
Choice Find
1. Area of square
2. Area of rectangle
3. Area of triangle
12. Write a program using a logical operator
13. Write a program to check whether a number is an Armstrong
number or not.
14. Write a program to print the sum of all the primes between
two ranges.
15. Write a program to swap two strings.

16. Write a program to find out whether the year is a leap year or
not.
17 Write a menu-driven program to accept two strings from the
user and perform the various functions using user-defined
functions.
18. Write a program to find the smallest and largest number in a
list
19. Write a program that uses a user-defined function that
accepts name and gender (as M for Male, F for Female) and
prefixes Mr./Ms. on the basis of the gender.
20. Write a program to print the Fibonacci series using recursion

You might also like