An open API service indexing awesome lists of open source software.

https://github.com/sandyg6/100-days-python-challenge

Started with my 100 days of coding challenge with Python Programming language.
https://github.com/sandyg6/100-days-python-challenge

coding coding-challenge programming python python3

Last synced: 6 months ago
JSON representation

Started with my 100 days of coding challenge with Python Programming language.

Awesome Lists containing this project

README

          

# 100-Days-Python-coding
Started with my 100 days of coding challenge with Python Programming language.

Programs
1. Write a program to identify if the character is a vowel or consonant. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day01.py)
2. Write a program to identify if the character is an alphabet or not. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day02.py)
3. Write a program to find ASCII values of a character. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day03.py)
4. Write a program to find Number of digits in an integer. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day04.py)
5. Write a program to find Factorial of a number. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day05.py)
6. Write a program to find Fibonacci series up to n. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day06.py)
7. Write a program to identify of the a number is positive or negative. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day07.py)
8. Write a program to identify if the number is even or odd. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day08.py)
9. Write a program to find Area of a circle. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day09.py)
10. Write a program to find Area of a rectangle. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day10.py)
11. Write a program to find Area of a Triangle. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day11.py)
12. Write a program to find Sum of digits of a number. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day12.py)
13. Write a program to find Sum of N natural numbers. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day13.py)
14. Write a program to find Sum of numbers in a given range. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day14.py)
15. Write a program to reverse a given number. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day15.py)
16. Write a program to find LCM of two numbers. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day16.py)
17. Write a program to identify if the number is Strong number or not. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day17.py)
18. Write a program to identify if the number is Perfect number or not. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day18.py)
19. Write a program to find Power of a number. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day19.py)
20. Write a program to find the Factors of a number. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day20.py)
21. Write a program to Add two fractions. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day21.py)
22. Write a program to find GCD of two numbers. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day22.py)
23. Write a program to identify if the number is Armstrong number or not. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day23.py)
24. Write a program to find Greatest of two numbers. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day24.py)
25. Write a program to find Greatest of three numbers.[(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day25.py)
26. Write a program to identify if the year is Leap year or not. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day26.py)
27. Write a program to identify if the number is Prime number or not. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day27.py)
28. Write a program to identify if the number is Palindrome or not. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day28.py)
29. Write a program to print prime numbers in a given range. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day29.py)
30. Write a program to print Armstrong numbers between two intervals. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day30.py)
31. Write a program to express a number as a sum of two prime numbers? [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day31.py)
32. Write a program to Replace all 0’s with 1 in a given integer. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day32.py)
33. Write a program to print Pyramid pattern using stars. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day33.py)
34. Write a program to print Pyramid pattern using numbers. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day34.py)
35. Write a program to print Palindromic pyramid pattern printing. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day35.py)
36. Write a program to calculate Maximum number of handshakes. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day36.py)
37. Write a program to find the Quadrants in which coordinates lie. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day37.py)
38. Write a program to Convert digit/number to words. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day38.py)
39. Write a program to find Number of days in a given month of a given year. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day39.py)
40. Write a program to find Permutations in which n people can occupy r seats in a classroom. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day40.py)
41. Write a program for Binary to decimal conversion. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day41.py)
42. Write a program for Decimal to binary conversion. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day42.py)
43. Write a program for Binary to octal conversion. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day43.py)
44. Write a program for Octal to binary conversion. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day44.py)
45. Write a program for Decimal to octal conversion. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day45.py)
46. Write a program for Octal to decimal conversion. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day46.py)
47. Write a program to find number of times digit 3 occurs in each and every number from 0 to n. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day47.py)
48. Write a program to find number of integers which has exactly 9 divisors. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day48.py)
49. Write a program to find roots of a quadratic equation.[(code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day49.py).
50. Write a program to print Solid and hollow rectangle star pattern [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day50.py)
51. Write a program to print Diamond pattern printing using stars. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day51.py)
52. Write a program to print Diamond pattern printing using numbers. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day52.py)
53. Write a program to print Floyd’s triangle. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day53.py)
54. Write a program to print Pascal triangle. [(code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day54.py)
55. Write a program to check Least Significant Bit (LSB) of a number is set or not. [(code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day55.py)
56. Write a program which will find all such numbers which are divisible by 7 but are not a multiple of 5, between 2000 and 3200 (both included). The numbers obtained should be printed in a comma-separated sequence on a single line. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day56.py)
57. Write a program which can compute the factorial of a given numbers. The results should be printed in a comma-separated sequence on a single line. Suppose the following input is supplied to the program: 8 Then, the output should be: 40320 [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day57.py)
58. With a given integral number n, write a program to generate a dictionary that contains (i, i*i) such that is an integral number between 1 and n (both included). and then the program should print the dictionary. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day58.py)
59. Write a program which accepts a sequence of comma-separated numbers from console and generate a list and a tuple which contains every number. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day59.py)
60. Define a class which has at least two methods: getString: to get a string from console input printString: to print the string in upper case. Also please include simple test function to test the class methods. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day60.py)
61. Write a program that calculates and prints the value according to the given formula: Q = Square root of [(2 * C * D)/H] Following are the fixed values of C and H: C is 50. H is 30. D is the variable whose values should be input to your program in a comma-separated sequence. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day61.py)
62. Write a program which takes 2 digits, X,Y as input and generates a 2-dimensional array. The element value in the i-th row and j-th column of the array should be i*j. Note: i=0,1.., X-1; j=0,1,¡­Y-1. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day62.py)
63. Write a program that accepts a comma separated sequence of words as input and prints the words in a comma-separated sequence after sorting them alphabetically. Suppose the following input is supplied to the program: without,hello,bag,world Then, the output should be: bag,hello,without,world. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day63.py)
64. Write a program that accepts sequence of lines as input and prints the lines after making all characters in the sentence capitalized. Suppose the following input is supplied to the program: Hello world Practice makes perfect Then, the output should be: HELLO WORLD PRACTICE MAKES PERFECT . [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day64.py)
65. Write a program that accepts a sequence of whitespace separated words as input and prints the words after removing all duplicate words and sorting them alphanumerically. Suppose the following input is supplied to the program: hello world and practice makes perfect and hello world again Then, the output should be: again and hello makes perfect practice world . [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day65.py)
66. Write a program which accepts a sequence of comma separated 4 digit binary numbers as its input and then check whether they are divisible by 5 or not. The numbers that are divisible by 5 are to be printed in a comma separated sequence.[(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day66.py)
67. Write a program, which will find all such numbers between 1000 and 3000 (both included) such that each digit of the number is an even number. The numbers obtained should be printed in a comma-separated sequence on a single line. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day67.py)
68. Write a program that accepts a sentence and calculate the number of letters and digits. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day68.py)
69. Write a program that accepts a sentence and calculate the number of upper case letters and lower case letters. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day69.py)
70. Write a program that computes the value of a+aa+aaa+aaaa with a given digit as the value of a. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day70.py)
71. Write a python program to interchange first and last elements in a list. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day71.py)
72. Use a list comprehension to square each odd number in a list. The list is input by a sequence of comma-separated numbers. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day72.py)
73. Write a program that computes the net amount of a bank account based a transaction log from console input. The transaction log format is shown as following: D 100 W 200. D means deposit while W means withdrawal. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day73.py)
74. write a program to sort the (name, age, height) tuples by ascending order where name is string, age and height are numbers. The tuples are input by console. The sort criteria is: 1: Sort based on name; 2: Then sort based on age; 3: Then sort by score. The priority is that name > age > score. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day74.py)
75. Write a program to compute the frequency of the words from the input. The output should output after sorting the key alphanumerically. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day75.py)
76. Define a function which can print a dictionary where the keys are numbers between 1 and 20 (both included) and the values are square of keys. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day76.py)
77. Define a class named Circle which can be constructed by a radius. The Circle class has a method which can compute the area. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day77.py)
78. Define a class named Rectangle which can be constructed by a length and width. The Rectangle class has a method which can compute the area. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day78.py)
79. Define a class named Shape and its subclass Square. The Square class has an init function which takes a length as argument. Both classes have a area function which can print the area of the shape where Shape's area is 0 by default. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day79.py)
80. Write a function to compute 5/0 and use try/except to catch the exceptions. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day80.py)
81. Define a custom exception class which takes a string message as attribute. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day81.py)
82. Write a program using list comprehension to print the Fibonacci Sequence in comma separated form. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day82.py)
83. Write a binary search function which searches an item in a sorted list. The function should return the index of element to be searched in the list. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day83.py)
84. Generate a random float where the value is between 10 and 100 using Python math module. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day84.py)
85. Write a program to output a random even number between 0 and 10 inclusive using random module and list comprehension. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day85.py)
86. Write a program to shuffle and print the list. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day86.py)
87. Write a program to generate all sentences where subject is in ["I", "You"] and verb is in ["Play", "Love"] and the object is in ["Hockey","Football"]. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day87.py)
88. Write a program to print the list after removing delete even numbers in the list.[(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day88.py)
89. Write a program to print the list after removing delete numbers which are divisible by 5 and 7. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day89.py)
90. Write a program to print this list after removing all duplicate values with original order reserved. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day90.py)
91. Write a program generate a 358 3D array whose each element is 0. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day91.py)
92. Write a program to print the list after removing the value 24 in [12,24,35,24,88,120,155]. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day92.py)
93. With two given lists, write a program to make a list whose elements are intersection of the above given lists. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day93.py)
94. Write a program to print this list after removing all duplicate values with original order reserved. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day94.py)
95. Define a class Person and its two child classes: Male and Female. All classes have a method "getGender" which can print "Male" for Male class and "Female" for Female class. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day95.py)
96. Write a program which count and print the numbers of each character in a string input. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day96.py)
97. Write a program which accepts a string from console and print it in reverse order. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day97.py)
98. write a program which accepts a string from console and print the characters that have even indexes. [(code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day98.py)
99. Write a program which accepts a string from console and print the characters that have even indexes. [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day99.py)
100. Write a program to solve a classic ancient Chinese puzzle: We count 35 heads and 94 legs among the chickens and rabbits in a farm. How many rabbits and how many chickens do we have? [(Code)](https://github.com/sandyg6/100-Days-Python-coding/blob/main/Day100.py)