i've trying to make this work, but i just can't lol. Please, help me if you can:
I'm trying to do a simple music player, cause it's my first contact with the python (or any other programming langue), and at this part i want make some questions for the user while he is listening the music that we are taking about.
In next lines, if the user don't wanna listen again the music, i will add a list of music and make him choose, and, in the future, i want put some commands for skip to the next music and something about that
` P1 = str(input('wanna again? (Y/N)'))
def DEF1():
if P1 == ('Y'):
P2 = str(input('do you know what is it? (Y/N)'))
if P2 == ('Y'):
P3 = str(input('what is it?'))
print(P3)
if P2 == ('N'):
print('this is a game sound!')
if P1 == ('N'):
print('that is it')
def DEF2():
while:
playsound.playsound('', True) #a music link
if __name__ == '__main_':
Process(target=DEF1).start()
Process(target=DEF2).start()`
Aucun commentaire:
Enregistrer un commentaire