Automate Cybersecurity Tasks with Python | Weekly challenge 4 Quiz |
The logins variable is a string containing 20 device IDs. The device IDs are separated by spaces. In order to pass it into a function that checks the login count of each device, the string should be divided into a list of separate IDs. How do you convert this string into a list and store it in a device_ids variable?
- device_ids = logins.split()
- logins.split() as device_ids
- device_ids = device_ids.split(logins)
- device_ids = split(device_ids, logins)