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
31. Write a program to print a diamond pattern of stars.
32. Write a program to find the smallest divisor of a number greater than 1.
33. Write a program to check if a number is a perfect number.
34. Write a program to find the common characters in two strings.
35. Write a program to remove all whitespace from a string.
36. Write a program to check if a string contains only digits.
37. Write a program to count the number of words in a sentence.
38. Write a program to find the largest word in a sentence.
39. Write a program to create a list of squares of numbers from 1 to n.
40. Write a program to calculate the sum of the digits of a number until it becomes a single digit.
41. Write a program to check if a number is an Armstrong number.
42. Write a program to find the sum of the first n odd numbers.
43. Write a program to check if a string is a valid email address.
44. Write a program to find the index of the first occurrence of a character in a string.
45. Write a program to print the ASCII value of a character.
46. Write a program to find the number of uppercase and lowercase letters in a string.
47. Write a program to generate a list of Fibonacci numbers up to n.
48. Write a program to find the frequency of each character in a string.
49. Write a program to check if a number is a strong number.
50. Write a program to find the longest substring without repeating characters.
51. Write a program to calculate the power of a number using recursion.
52. Write a program to find the sum of all multiples of 3 and 5 below n.
53. Write a program to check if a list is sorted in ascending order.
54. Write a program to swap two variables without using a third variable.
55. Write a program to create a countdown timer.
56. Write a program to check if a string is a pangram.
57. Write a program to find the minimum and maximum values in a list of dictionaries.
58. Write a program to find the nth Fibonacci number using recursion.
59. Write a program to convert a binary number to decimal.
60. Write a program to find the sum of the diagonals of a square matrix.
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.