Skip to content

Commit 0d5d0a7

Browse files
committed
Refactoring CLI code block
1 parent e62e6ec commit 0d5d0a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: machine_learning/linear_discriminant_analysis.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,8 @@ def main():
334334
if name == "nt": # Related to Windows OS
335335
system("cls")
336336
continue
337-
else: # Related to Mac OSX and Linux OS
338-
system("clear")
337+
else:
338+
system("cls" if name == "nt" else "clear")
339339
continue
340340

341341

0 commit comments

Comments
 (0)