LucasPilla / Sorting-Algorithms-Visualizer

Program made with Python and Pygame module for visualizing sorting algorithms
MIT License
426 stars 165 forks source link

Fixing syntax error in bubleSort.py #139

Closed Mishrasubha closed 3 years ago

Mishrasubha commented 3 years ago

There's a syntax error in bubleSort.py that gives an error when running python3 main.py

Error traceback-

[subhashreemishra@fedora Sorting-Algorithms-Visualizer]$ python3 main.py
pygame 2.0.3 (SDL 2.0.16, Python 3.9.7)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
  File "/home/subhashreemishra/Github_projects/Sorting-Algorithms-Visualizer/main.py", line 4, in <module>
    from algs import algorithmsDict
  File "/home/subhashreemishra/Github_projects/Sorting-Algorithms-Visualizer/algs.py", line 1, in <module>
    from algorithms import *
  File "/home/subhashreemishra/Github_projects/Sorting-Algorithms-Visualizer/algorithms/__init__.py", line 1, in <module>
    from algorithms.bubbleSort import bubbleSort
  File "/home/subhashreemishra/Github_projects/Sorting-Algorithms-Visualizer/algorithms/bubbleSort.py", line 10
    if !swapped:
       ^
SyntaxError: invalid syntax

It's a small issue that needs fixing.