Home / Expert Answers / Computer Science / python-language-3-write-a-program-to-play-the-following-game-there-is-a-list-of-several-country-na-pa464

(Solved): python language 3. Write a program to play the following game. There is a list of several country na ...



python language

3. Write a program to play the following game. There is a list of several country names and the program randomly picks one. T
3. Write a program to play the following game. There is a list of several country names and the program randomly picks one. The player then has to guess letters in the word one at a time. Before each guess the country name is displayed with correctly guessed letters filled in and the rest of the letters represented with dashes. For instance, if the country is Oman and the player has correctly guessed \( a, m \), and \( n \), the program would display -man The program should continue until the player either guesses all of the letters of the word or gets five letters wrong. [10 marks]


We have an Answer from Expert

View Expert Answer

Expert Answer


The python code is given below: import random def main(): CountryList = ['india','canada','germany','england','australia','italy','ukraine'] choice =
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe