Question: Consider the following code:# guessing.pyimport random# Some global password information which is hard - codedpasswords = { joe : world 1 2 3
Consider the following code:# guessing.pyimport random# Some global password information which is hardcodedpasswordsjoe: "world"jane": "hellodef game:A guessing game # Use 'input' to read the standard inputvalueinputPlease enter your guess between and : printEntered value isvalueif value random.randrange:printYou won!"else:printTry again"if namemain:gameThe given code provides information about passwords on entering invalid input, as shown:$ python guessing.pyPlease enter your guess between and : passwordsEntered value isjane: 'hello 'joe': 'worldTry againHow can you make the code more secure in Python Each correct answer represents a complete solution. Choose three.This type of question contains radio buttons and checkboxes for selection of options. Use Tab for navigation and Enter or space to select the option.Aoption AReplace input with rawinput.Boption BCast the return data to an int.Coption CAdd an exception handler.Doption DUse eval function.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
