Skip to content

Commit d303030

Browse files
authored
Merge branch 'geekcomputers:master' into master
2 parents 99ff81d + 902948d commit d303030

File tree

4 files changed

+42
-6
lines changed

4 files changed

+42
-6
lines changed
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
numpy==1.26.4
1+
numpy==2.0.0
22
opencv_python==4.10.0.82
3-
mediapipe==0.10.9
3+
mediapipe==0.10.14

add_two_number.py

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
user_input = (input("type type 'start' to run program:")).lower()
2+
3+
if user_input == 'start':
4+
is_game_running = True
5+
else:
6+
is_game_running = False
7+
8+
9+
while (is_game_running):
10+
num1 = int(input("enter number 1:"))
11+
num2 = int(input("enter number 2:"))
12+
num3 = num1+num2
13+
print(f"sum of {num1} and {num2} is {num3}")
14+
user_input = (input("if you want to discontinue type 'stop':")).lower()
15+
if user_input == "stop":
16+
is_game_running = False
17+

convert_wind_direction_to_degrees.py

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
def degrees_to_compass(degrees):
2+
directions = ["N", "NE", "E", "SE", "S", "SW", "W", "NW"]
3+
index = round(degrees / 45) % 8
4+
return directions[index]
5+
6+
# Taking input from the user
7+
while True:
8+
try:
9+
degrees = float(input("Enter the wind direction in degrees (0-359): "))
10+
if degrees < 0 or degrees >= 360:
11+
raise ValueError("Degrees must be between 0 and 359")
12+
break
13+
except ValueError as ve:
14+
print(f"Error: {ve}")
15+
continue
16+
17+
18+
compass_direction = degrees_to_compass(degrees)
19+
print(f"{degrees} degrees is {compass_direction}")

requirements_with_versions.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dictator==0.3.1
1515
caller==0.0.2
1616
watchdog==3.0.0
1717
PyQt5==5.15.10
18-
numpy==1.26.4
18+
numpy==2.0.0
1919
fileinfo==0.3.3
2020
backend==0.2.4.1
2121
win10toast==0.9
@@ -42,7 +42,7 @@ obs==0.0.0
4242
todo==0.1
4343
oauth2client==4.1.3
4444
keras==3.3.3
45-
pymongo==4.7.1
45+
pymongo==4.7.3
4646
playsound==1.3.0
4747
pyttsx3==2.90
4848
auto-mix-prep==0.2.0
@@ -81,7 +81,7 @@ Unidecode==1.3.8
8181
Ball==0.2.9
8282
pynput==1.7.6
8383
gTTS==2.5.0
84-
ccxt==4.3.47
84+
ccxt==4.3.48
8585
fitz==0.0.1.dev2
8686
fastapi==0.109.0
8787
Django==5.0.5
@@ -102,7 +102,7 @@ qrcode==7.4.2
102102
googletrans==3.0.0
103103
slab==1.1.5
104104
psutil==5.9.8
105-
mediapipe==0.10.9
105+
mediapipe==0.10.14
106106
rich==13.7.1
107107
httplib2==0.22.0
108108
protobuf==5.27.1

0 commit comments

Comments
 (0)