Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You want to check if a device is running a particular operating system that needs updates. Devices that contain a substring of i 7
You want to check if a device is running a particular operating system that needs updates. Devices that contain a substring of i in their device ID are running this operating system. First, you want to read in a log file that contains the device ID for all devices and convert it into a string. You should then parse this string into a devices list. Then, you should separate all device IDs that contain the substring i into a separate list called updateslist. If you want to automate this through Python, what would be part of your code? Select three answers.
An if statement that checks if elements in devices contain the substring i
A counter variable to keep track of the number of devices containing the substring i
A split function to split the string containing the information in the log file into a devices list
A for loop to iterate through all items in the devices list
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