NEXIGO 1005-F21 Tutorial 5-81 ( X B Tutorial 5 recording (by TA Alex O Tutorial 5- Merge COMP1005AX G Write a function called print han d2/le/content/82886/viewContent/2138118/View Hint: remember...


NEXIGO<br>1005-F21 Tutorial 5-81 ( X<br>B Tutorial 5 recording (by TA Alex<br>O Tutorial 5- Merge COMP1005AX<br>G Write a function called print han<br>d2/le/content/82886/viewContent/2138118/View<br>Hint: remember tutorial 3 problem 3.<br>Problem 2<br>Write a program called p2.py. Write a function called guess () that does the following:<br>1. takes a character as input<br>2. prints the word (global variable) where only the character is revealed, and the other<br>letters are replaced by underscores<br>3. returns true if the character is in the word and false otherwise<br>Example:<br>word =

Extracted text: NEXIGO 1005-F21 Tutorial 5-81 ( X B Tutorial 5 recording (by TA Alex O Tutorial 5- Merge COMP1005AX G Write a function called print han d2/le/content/82886/viewContent/2138118/View Hint: remember tutorial 3 problem 3. Problem 2 Write a program called p2.py. Write a function called guess () that does the following: 1. takes a character as input 2. prints the word (global variable) where only the character is revealed, and the other letters are replaced by underscores 3. returns true if the character is in the word and false otherwise Example: word = "koala"| guess ('a') prints guess ('b') prints a a and returns True and returns False Droblem 3 2 16

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here