I am new to python and find it frustrating as python does not seem to conform to any low-level language :-)
I have the following code that woks:
I am trying to do this but it does NOT work
I get the following error:
Can someone please advise?
I have the following code that woks:
1 2 3 4 5 |
def clean_db(): cur.execute( "SELECT file FROM detection" ) result = cur.fetchall() for row in result: print (row) |
1 2 3 4 5 6 |
def clean_db(): cur.execute( "SELECT file FROM detection" ) result = cur.fetchall() for row in result: [i] if os.path.exists(row[ 0 ]): [ / i] print (row[ 0 ]) |
1 2 3 |
print (row[ 0 ]) ^ TabError: inconsistent use of tabs and spaces in indentation |