You need to take a slice from an employee ID. Specifically, you must extract the characters with indices of 3, 4, 5, and 6. 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 an employee ID. Specifically, you must extract the characters with indices of 3, 4, 5, and 6. 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.)

employee_id = "w237x430y567" 
print (employee_id [3:7])

What string does the code output?

  • “x430”
  • “37×4”
  • “7×43”
  • “237x”

 

Leave a Comment