No , save it as findusb.py and just type python3 findusb.py in a terminal window or open Thonny, put in there and run itDo I just paste this python code into windows terminal?
Update:
I guess that's a no to my question as I just get:
-bash: import: command not found
-bash: v1: command not found
-bash: v2: command not found
-bash: v3: command not found
-bash: v4: command not found
-bash: syntax error near unexpected token `('
-bash: syntax error near unexpected token `('
-bash: syntax error near unexpected token `txt'
-bash: ctrls: command not found
-bash: syntax error near unexpected token `('
-bash: syntax error near unexpected token `('
-bash: syntax error near unexpected token `line'
-bash: syntax error near unexpected token `('
-bash: syntax error near unexpected token `('
-bash: syntax error near unexpected token `elif'
-bash: v2: command not found
-bash: syntax error near unexpected token `elif'
-bash: v3: command not found
-bash: syntax error near unexpected token `elif'
-bash: v4: command not found
-bash: syntax error near unexpected token `v1,v2,v3,v4'
Statistics: Posted by gordon77 — Thu Feb 29, 2024 6:50 pm