Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2333f93

Browse files
PatOnTheBackpoyea
authored andcommitted
Change Declaration of Var 'j' to None (#921)
Since `j` is redefined before it is used, it makes more sense to declare it with the value `None` instead of `1`.This fixes a [warning from lgtm](https://lgtm.com/projects/g/TheAlgorithms/Python/snapshot/66c4afbd0f28f9989f35ddbeb5c9263390c5d192/files/other/primelib.py?sort=name&dir=ASC&mode=heatmap)
1 parent34889fc commit2333f93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎other/primelib.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def goldbach(number):
283283

284284
# run variable for while-loops.
285285
i=0
286-
j=1
286+
j=None
287287

288288
# exit variable. for break up the loops
289289
loop=True

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp