now we use If-Else to create a question answer format similar to both players.create a question word with the function calling.declare computer’s task to choose a word from library created.now start a loop ( while (1) ), 1 because we want to continue untill the players want.declare two variables for points, initially as zero.declare two variable and take name of players.Jumbled="".join(random.sample(word,len(word))) choose a random word in the following way.create a list of words, with as many words you want.We will be doing it in parts and combine in one to make it work, before that in the first two lines import random, import pygame:-ġ. ![]() I prefer VS code as it completes the code from its libraries and themes are attractive.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |