Skip to content

Latest commit

 

History

History
66 lines (65 loc) · 8.92 KB

File metadata and controls

66 lines (65 loc) · 8.92 KB

PythonDaysOfCode

Participating in the Women Who Code Python Days of Code Challenge

Day Challenge
1 Create a program that swaps the values of two variables
2 Create a program to calculate the area of a circle given its radius
3 Write a function to count the number of vowels in a given string
4 Write a program to find the sum of all elements in a list
5 Write a program to find the maximum and minimum values in a list
6 Write a program to count the occurrences of a specific character in a string
7 Write a program to check if a number is positive, negative, or zero
8 Write a function that accepts a string and calculates the number of uppercase and lowercase letters in it
9 Write a program to check if a number is even or odd
10 Write a program to remove duplicates from a list
11 Write a program to print the multiplication table of a given number
12 Write a program to reverse a given string
13 Write a program to shuffle the elements of a list randomly
14 Write a program to print the first n numbers of a Fibonacci sequence
15 Create a program that checks if a year is a leap year
16 Write a function that counts the frequency of each word in a sentence
17 Create a program that capitalizes the first letter of each word in a sentence
18 Create a program to find the largest among three numbers
19 Write a function to calculate the factorial of a number
20 Write a function that takes a list of numbers and returns a new list containing only the even numbers
21 Create a program to remove a specific element from a set
22 Create a program to find the second-largest element in a list
23 Write a program that checks if a key exists in a dictionary
24 Write a program to remove vowels from a given string
25 Create a program to concatenate two lists
26 Create a program that uses a lambda function to square each element of a list
27 Create a program that sorts a list of strings alphabetically
28 Create a program that removes the nth element from a list
29 Create a function that generates a random number between a given range
30 Create a function that finds the second smallest element in a list
31 Create a program that checks if a given string is a valid email address
32 Create a function that calculates the average of a list of numbers
33 Write a test case for a function that checks if a number is prime
34 Write a Python program to merge two dictionaries
35 Write a simple unit test for a function that adds two numbers
36 Write a Python program to check if two strings are anagrams
37 Write a program to iterate through a dictionary and print its keys and values
38 Write a program to flatten a nested list
39 Write a program to find the most common words in a text file
40 Write a function to find the largest common divisor of two numbers using a function
41 Write a program that uses recursion to generate all permutations of a list
42 Write a program that uses a try-except block to handle division by zero
43 Write a program that removes all whitespaces from a given string
44 Write a program that reads an integer from the user and handles invalid inputs
45 Write a function to check if a number is a prime number
46 Write a function to check if a given list is sorted
47 Create a program that imports the math module and uses its functions
48 Create a program that replaces specific words in a text with their synonyms
49 Create a program that implements the bubble sort algorithm
50 Create a program that finds the intersection and union of two sets
51 Create a program that counts the occurrences of each word in a text file
52 Create a program that checks if a string is a palindrome
53 Create a program that allows users to draw on a canvas using a GUI
54 Create a function to find all words in a sentence that start with a vowel
55 Create a function that takes a string and returns the reverse of each word
56 Create a function to extract all URLs from a given text using regular expressions
57 Create a function that returns the key with the maximum value in a dictionary
58 Create a function that converts a string to an integer and handles ValueError
59 Create a function that checks if a number is a perfect square
60 Create a class representing a simple bank account with deposit and withdraw methods
61 Create a program to implement a stack using a list