Answered step by step
Verified Expert Solution
Link Copied!

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 "i71" 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 "i71" into a separate list called updates_list. 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 "i71"
A counter variable to keep track of the number of devices containing the substring "i71"
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

More Books

Students also viewed these Databases questions

Question

2. What kind of team is it?

Answered: 1 week ago

Question

Determine the amplitude and period of each function.

Answered: 1 week ago