Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
14 views

Python_Project_Basic_Questions

Uploaded by

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

Python_Project_Basic_Questions

Uploaded by

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

1

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.

Lala Sarkaru Mal Sarvhitkari Sr. Sec. Vidya


Mandir, Khanna

Table of Contents
Disclaimer:................................................................................................................................................1
Submitted By : Preetinder Singh
Question 1...........................................................................................................................................................3

Submitted to : Mr. Manoj Kumar


2

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

Q: Random Stor generator

Code:

Output:
16

Thank You for


Reading

Thanks for reading this project on Python. I hope it has


further enriched the understanding of what's possible
through language. Whether new to Python or familiar with
its great features, I hope it has in any event made aware
of the very role Python fills within the world of modern
programming. Your interest and attention are greatly
appreciated; look forward to delving into related subjects
in depth in the future

You might also like