You need to take a slice from a device ID. Specifically, you must extract the characters with indices of 8, 9, and 10. Complete the Python code to take this slice and display it. (If you want to undo your changes to the code, you can click the Reset button.)

Automate Cybersecurity Tasks with Python | Weekly challenge 3 Quiz | 

You need to take a slice from a device ID. Specifically, you must extract the characters with indices of 8, 9, and 10. Complete the Python code to take this slice and display it. (If you want to undo your changes to the code, you can click the Reset button.)

device_id = “u899v381w363″print(### YOUR CODE HERE ###)
device_id = “u899v381w363”
print(### YOUR CODE HERE ###)

What string does the code output?

  • “w36”
  • “81w”
  • “1w3”
  • “363”

 

Leave a Comment