-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgramming-Challenges.py
87 lines (54 loc) · 2.35 KB
/
Programming-Challenges.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#* Programming Challenges - Python
# Clear! Here are some Python programming challenges you can try to improve your skills.
# skills:
#? Challenge 1:
#* Sum of Even Numbers
# Write a program that calculates the sum of even numbers from 1 to 100.
#? Challenge 2:
#* Prime numbers
# Write a function that determines whether a given number is prime or not.
#? Challenge 3:
#*Simple Calculator
# Create a simple calculator that can perform addition, subtraction, multiplication and division operations.
# You can use functions to implement each operation.
#? Challenge 4:
#* Word Counter
# Write a program that takes a text string as input and counts the frequency of each word in
# chain.
#? Challenge 5:
#*Guess the Number
# Create a game where the program chooses a random number between 1 and 100, and the player has to guess
# the number. The program should provide clues as to whether the number is larger or smaller.
#? Challenge 6:
#* Temperature Converter
# Write a program that converts the temperature from Celsius to Fahrenheit and vice versa. Can
# ask the user to choose the desired conversion.
#? Challenge 7:
#*Fibonacci
# Write a function that generates the first N terms of the Fibonacci sequence.
#? Challenge 8:
#* Hangman game
# Implement the hangman game. The program must select a word at random and allow the
# player guess the letters.
#? Challenge 9:
#* Word Classification
# Write a program that takes a list of words as input and sorts them in alphabetical order.
#? Challenge 10:
#* Dice Simulation
# Create a program that simulates the throwing of two dice and calculates the sum of the results.
#? Challenge 11:
#* File Finder
# Write a script that finds all files with a specific extension in a given directory and
# its subdirectories.
#? Challenge 12:
#* Rock, Paper, Scissors Game
# Implement the classic game of Rock, Paper, Scissors. The program should allow the user to play
# against the computer.
#? Challenge 13:
#*Factorial Calculator
# Write a function that calculates the factorial of a given number.
#? Challenge 14:
#* Palindrome Checker
# Write a program that checks if a word or phrase is a palindrome.
# These challenges cover a variety of concepts in Python and will allow you to practice and improve your
# programming skills. Good luck!