Python homework help | Information Systems homework help

Reviewing other developer?s work is essential. Reviewing the work of others makes both the reviewer and the reviewee better developers by allowing you to see how others might solve the same problem. It also ensures that standards are adhered to and offer the potential to catch logic errors that would otherwise end up in production.ÿ Peer code reviews are typically done by a pull request.ÿ The following video will outline how this is done and provide some helpful advice on completing your homework for this week.ÿ Please make sure you are following the steps outlined in this video.
https://bellevue.mediaspace.kaltura.com/media/Code+Review+and+Pull+Request/1_uegwl6fu
# This is a header for the application# You should read this header and insert your name and your date below as part of the peer review# This is a typical part of any program# Author: <author># Creation Date: <date># Below is a simple program with several. ÿYou need to identify the issues and correct them.
import randomimport time
def displayIntro():print(”’You are in a land full of dragons. In front of you,you see two caves. In one cave, the dragon is friendlyand will share his treasure with you. The other dragonis greedy and hungry, and will eat you on sight.”’)print()
def chooseCave():ÿÿÿcave=””ÿÿÿÿÿÿÿwhile cave != ‘1’ and cave != ‘2’:ÿÿÿÿÿÿÿÿÿÿÿprint(‘Which cave will you go into? (1 or 2)’)ÿÿÿÿÿÿÿÿÿÿÿcave = input()
ÿÿÿreturn caves
def checkCave(chosenCave):ÿÿÿprint(‘You approach the cave…’)ÿÿÿ#sleep for 2 secondsÿÿÿtime.sleep(2)ÿÿÿprint(‘It is dark and spooky…’)ÿÿÿ#sleep for 2 secondsÿÿÿtime.sleep(3)ÿÿÿprint(‘A large dragon jumps out in front of you! He opens his jaws and…’)ÿÿÿprint()ÿÿÿ#sleep for 2 secondsÿÿÿtime.sleep(2)ÿÿÿfriendlyCave = random.randint(1, 2)
ÿÿÿif chosenCave == str(friendlyCave):ÿÿÿÿÿÿÿprint(‘Gives you his treasure!’)ÿÿÿelse:ÿÿÿÿÿÿÿprint ‘Gobbles you down in one bite!’
displayIntro()caveNumber = choosecave()checkCave(caveNumber)ÿÿÿprint(“Thanks for planing”)

× How can I help you?