0

I just run the code below on my Linux machine but it gives me a traceback saying os has no attribute 'startfile'

$python3
import os
os.startfile('speech.mp3')
khelwood
  • 52,115
  • 13
  • 74
  • 94
  • `os.startfile` is only available on Windows. See: https://docs.python.org/3/library/os.html#os.startfile – jrd1 Jan 13 '22 at 14:57

0 Answers0