Closed cclauss closed 5 years ago
I think the code you're trying to run is for Python 2 as Python 3 has a syntax print() with braces and python 2 doesn't have those braces
Yes, that is python 2 syntax. If we change them with print() as a function it will work for both Python 2 & 3
There are a few subtle rules about commas, end=, file=, etc. to watch out for...
print "Sorted seqquence after applying Gnome Sort :",
# -->
print("Sorted seqquence after applying Gnome Sort :", end=" ")
flake8 testing of https://github.com/ZoranPandovski/al-go-rithms on Python 3.7.0
$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics