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

50 Python Questions

The document outlines a series of programming tasks that involve basic mathematical operations and logic. Tasks include finding the oldest age from user input, converting Celsius to Fahrenheit, calculating sums, checking for leap years, and determining properties of numbers such as prime and Armstrong. Additionally, it includes practical applications like calculating simple interest, in-hand salary after deductions, and population growth.

Uploaded by

algo47177
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)
3 views2 pages

50 Python Questions

The document outlines a series of programming tasks that involve basic mathematical operations and logic. Tasks include finding the oldest age from user input, converting Celsius to Fahrenheit, calculating sums, checking for leap years, and determining properties of numbers such as prime and Armstrong. Additionally, it includes practical applications like calculating simple interest, in-hand salary after deductions, and population growth.

Uploaded by

algo47177
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

1. User will input (3 ages).

Find the oldest one


2. Write a program that will convert Celsius value to Fahrenheit
4. Write a program that will give you the sum of 3 digits
7. Write a program that will tell whether the given year is a leap year or not
8. Write a program to find the Euclidean distance between two coordinates
9. Write a program that takes a user input of three angles and will find out whether it can form a triangle or not
10. Write a program that will take user input of cost price and selling price and determines whether it’s a loss or a profit
11. Write a program to find the simple interest when the value of principle, rate of interest, and time period is given
12. Write a program to find the volume of the cylinder. Also find the cost when the cost of 1 litre milk is 40Rs
13. Write a program that will tell whether the given number is divisible by 3 & 6
14. GeeksforGeeks - Angle between hour and minute hand
15. GeeksforGeeks - Overlapping rectangles
17. Write a program that will take three digits from the user and add the square of each digit
18. Write a program that will check whether the number is Armstrong number or not
19. Write a program that will take user input of (4-digit number) and check whether the number is a narcissist number or not
20. Write a program that will give you the in-hand salary after deductions (HRA, DA, PF, tax based on salary range)
22. Write a program which tells the number of dogs and chickens when user gives heads and legs
24. Write a program to find the sum of first n numbers
25. Multiply 2 numbers without using * operator
26. Find the factorial of a given number
27. Print the first 25 odd numbers
28. Check if a number is prime
29. Print all Armstrong numbers between 100 and 1000
30. Find population at end of each of the last 10 years with 10% growth rate
31. Print all unique combinations of 1, 2, 3, and 4
32. Find the HCF of two numbers
33. Find the LCM of two numbers
34. Print first 25 prime numbers
35. Print first 20 numbers of Fibonacci series
36. Find compound interest
37. Compute the value of n + nn + nnn
38. Take a number from user and find number of digits
39. Print all factors of a given number
46. Sum of the series: 1/1! + 2/2! + 3/3! + ... + n/n!
47. Sum of series: 1 + x^2/2 + x^3/3 + … x^n/n
48. Approximate natural log using series (first 7 terms)
50. Accept numerator and denominator and simplify the fraction

You might also like