AniketTheProgrammer
Home
(current)
Courses
Projects
YT Projects
Coding Questions
Notification
Contact Us
Log In
All Topics
C Language
C++ Language
Greedy Algorithm
Hashing
Java Language
Linked List
Python
Queue
Stack
String
Sorting
Searching
Recursion
Backtracking
Dynamic Programming
Graph Theory
Bit Manipulation
Mathematics
Sliding Window Technique
Divide And Conquer
Matrix Manipulation
Two Pointers
Binary Tree
Topic: Python-language-question / Level: Beginner
1. Write a program to check whether a number is even or odd.
2. Write a program to find the largest of three numbers.
3. Write a program to calculate the factorial of a number.
4. Write a program to check if a string is a palindrome.
5. Write a program to count the number of vowels in a string.
6. Write a program to reverse a given string.
7. Write a program to find the sum of all digits in a number.
8. Write a program to print the Fibonacci series up to n terms.
9. Write a program to check if a number is prime.
10. Write a program to find the GCD of two numbers.
11. Write a program to convert Celsius to Fahrenheit.
12. Write a program to find the second largest number in a list.
13. Write a program to check if a year is a leap year.
14. Write a program to generate a random number between 1 and 100.
15. Write a program to remove duplicates from a list.
16. Write a program to find the length of a string without using the len() function.
17. Write a program to count the occurrences of a character in a string.
18. Write a program to find the minimum and maximum in a list.
19. Write a program to sort a list of numbers in ascending order.
20. Write a program to merge two lists.
21. Write a program to find the common elements between two lists.
22. Write a program to find the intersection of two sets.
23. Write a program to calculate the sum of even numbers from 1 to n.
24. Write a program to check if two strings are anagrams.
25. Write a program to calculate the square of a number using a function.
26. Write a program to find the largest even number in a list.
27. Write a program to print the multiplication table of a number.
28. Write a program to count how many times a specific digit appears in a number.
29. Write a program to find all prime numbers up to n.
30. Write a program to find the sum of the first n natural numbers.
Previous
1
2
3
4
5
6
7
Next
More Levels
Intermediate
Advanced
Most Visited
Write a program to check whether a number is even or odd.
Write a program to find the longest sequence of consecutive numbers in a list.
Write a program to implement the min-heap and max-heap data structures.
Write a program to find the common characters in two strings.
Write a program to find the longest path in a binary tree.
Write a program to find the longest valid parentheses substring.
Write a program to find the largest of three numbers.
Write a program to find the longest substring with at most two distinct characters.
Write a program to implement a simple file search application.
Write a program to calculate the factorial of a number using iteration.
Write a program to calculate the factorial of a number using loops.
Write a program to perform a depth-first search in a maze represented as a graph.
Write a program to calculate the number of unique paths in a grid with obstacles using dynamic programming.
Write a program to generate a random password with letters and digits.
Write a program to calculate the factorial of a number.