Python_Project_Basic_Questions
Python_Project_Basic_Questions
PYTHON
PROJECT
Disclaimer:
The results produced by this Python program may vary depending on the
input values selected. Different inputs will lead to different outputs,
highlighting the programs flexibility and the importance of input choice in
determining the final results. Users are encouraged to experiment with
various values to observe how the output changes accordingly.
Table of Contents
Disclaimer:................................................................................................................................................1
Submitted By : Preetinder Singh
Question 1...........................................................................................................................................................3
Question 2...........................................................................................................................................................3
Question 3...........................................................................................................................................................4
Question 4...........................................................................................................................................................4
Question 5...........................................................................................................................................................6
Question 6...........................................................................................................................................................6
Question 7...........................................................................................................................................................7
Question 8...........................................................................................................................................................8
Question 9...........................................................................................................................................................8
Question 10........................................................................................................................................................9
Question 11.....................................................................................................................................................10
Question 12.....................................................................................................................................................11
Question 13.....................................................................................................................................................11
Question 14.....................................................................................................................................................12
Question 15.....................................................................................................................................................13
Question 16.....................................................................................................................................................14
Question 17.....................................................................................................................................................15
Question 18.....................................................................................................................................................16
Question 19.....................................................................................................................................................16
Question 1
Q: Write a program to accepts two integers and
print
their sum.
Code:
3
Output:
Question 2
Q: Write a program that accepts the radius of a circle
and prints its area.
Code:
Output:
Question 3
Q: Write a program that accepts base and height and
calculate the area of a triangle.
Code:
4
Output:
Question 4
Question 4
Q: write a program to make an atm
Code:
5
Output:
Question 5
Q: Number guessing game
Code:
Output:
6
Question 6
Q. countdown timer
Code:
Output:
Question 7
Q: Write a program that inputs a student’s marks in
three subjects (out of 100) and prints the percentage
marks.
Code:
7
Output:
Question 8
Q: Write a program to calculate simple interest.
Code:
Output:
Question 9
Q: Find the factorial of a number
Code:
8
Output: 120
Question 10
Q: To Check if a number is prime
Code:
Output:
9
Question 11
Q: Write a program to find the lowest among the three
integers.
Code:
Output:
Question 12
Q: Write a program to accept the height in cm and
convert it into feet and inches.
10
Code:
Output:
Question 13
Q: Write a program that accepts the age and print if
one is eligible to vote or not.
Code:
Output:
11
Question 14
Q: Count the number of vowels in a string
Code:
Output:
Question 15
Q: Write a program to input percentage marks of a
student and find the grade
Code:
12
output:
Question 16
Q: Write a program to print whether a given character
is an uppercase or a lowercase character or a digit or
any other character.
Code:
13
Output:
Question 17
Q: Program to accept transation made in day and item
sold in day for 3 days and then print average sales made
per transation.
Code:
14
Output:
Question 18
Q: Check if a year is a leap year
Code:
Output:
Question 19
Q: Write a program to remove all odd numbers from
the given list.
Code:
15
Output:
2, 12 ,10
Question 20
Code:
Output:
16