import random
from words import voc_list
import time
from plyer import notification
def get_word():
word = random.choice(voc_list)
return word.upper()
if __name__ == "__main__":
while True:
notification.notify(
title = "Here is another vocablary word :-"
The_word = random.choice(voc_list)
Timeout = 8
)
I am trying to make a vocabulary reminder that tells you a new word in every 2 hours. I made a list of words along with their meaning and trying to display any one randomly for which I have used from words import voc_list but why it is showing as invalid syntax here The_word = random.choice(voc_list)
Aucun commentaire:
Enregistrer un commentaire