I see you already corrected it but anyways - read https://python-forum.io/Thread-Basic-Nev...n-sequence
by the way, avoid using cryptic one-letter variable names. There are limited number of cases when it's fine to use such variable names,
but in this case something like:
in python 3.6+ you can even take advantage of new f-strings
by the way, avoid using cryptic one-letter variable names. There are limited number of cases when it's fine to use such variable names,
but in this case something like:
for drive, space in list_mounts: print("Drive: {}, Used Space: {}".format(drive, space))makes your code much readable
in python 3.6+ you can even take advantage of new f-strings
for drive, space in list_mounts: print(f"Drive: {drive}, Used Space: {space}")finally, you can also use
for drive in list_mounts: print("Drive: {}, Used Space: {}".format(*drive))
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs