Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started