Valid 200-901 Dumps shared by EduDump.com for Helping Passing 200-901 Exam! EduDump.com now offer the newest 200-901 exam dumps, the EduDump.com 200-901 exam questions have been updated and answers have been corrected get the newest EduDump.com 200-901 dumps with Test Engine here:
Refer to the exhibit. A developer just finished testing a Python script and wants to save the list of packages and versions installed on the current machine. The developer must make sure that it will not cause any issues if tested on another device due to different library versions. Which line of code needs to be placed on the snippet where the code is missing?
Correct Answer: B
The pip freeze command is used to output installed packages in the current environment and their versions. The > operator redirects this output to a file, in this case, requirements.txt. pip freeze: Outputs the list of installed packages and their versions. Redirection: The > operator is used to redirect the output to a file. Option B is correct as it uses the > operator to redirect the output of pip freeze to requirements.txt. Reference: Python Packaging Documentation: Using Pip Freeze