DAY 26: 100Days of Python
from replit import audio
import os, time
def play():
source = audio.play_file('audio.wav')
source.paused = False # unpause the playback
while True:
stop_playback = int(input("Press 2 anytime to stop playback and go back to the menu : ")) #...
datapythonist.hashnode.dev1 min read