Skip to content

Commit 59c99a0

Browse files
authored
Merge branch 'geekcomputers:master' into mr-temp
2 parents 13968e6 + 8221f73 commit 59c99a0

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
numpy==2.3.4
1+
numpy==2.3.5
22
opencv_python==4.12.0.88
33
mediapipe==0.10.21

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ Feel free to explore the scripts and use them for your learning and automation n
5858
43. [smart_file_organizer.py](https://github.com/sangampaudel530/Python2.0/blob/main/smart_file_organizer.py) - Organizes files in a directory into categorized subfolders based on file type (Images, Documents, Videos, Audios, Archives, Scripts, Others). You can run it once or automatically at set intervals using the `--path` and `--interval` options.
5959
<hr>
6060

61-
_**Note**: The content in this repository belongs to the respective authors and creators. I'm just providing a formatted README.md for better presentation._
61+
_**Note**: The content in this repository belongs to the respective authors and creators. I'm just providing a formatted README.md for better presentation.

requirements_with_versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dictator==0.3.1
1515
caller==0.0.2
1616
watchdog==6.0.0
1717
PyQt5==5.15.11
18-
numpy==2.3.4
18+
numpy==2.3.5
1919
fileinfo==0.3.3
2020
backend==0.2.4.1
2121
win10toast==0.9

sum_of_digits_of_a_number.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ def sum_of_digits(n: int) -> int:
4949
Compute the sum of the digits of an integer.
5050
5151
Args:
52-
n: A non-negative integer.
52+
n:Non-negative integer
53+
If the integer is negative , it is converted to postive interger and assigned to same number
5354
5455
Returns:
5556
Sum of digits of the number.
@@ -60,6 +61,7 @@ def sum_of_digits(n: int) -> int:
6061
>>> sum_of_digits(405)
6162
9
6263
"""
64+
n=abs(n)
6365
total = 0
6466
while n > 0:
6567
# Add last digit and remove it from n

0 commit comments

Comments
 (0)