The string method .endswith(pattern) consumes a pattern (a s…

The string method .endswith(pattern) consumes a pattern (a string) andproduces a boolean indicating whether that pattern appears at the end of theoriginal string. The string method .startswith(pattern) consumes a pattern (a string) andproduces a boolean indicating whether that pattern appears at the start of theoriginal string. Use these methods to implement a new function named is_surrounded thatconsumes a sentence (a string) and produces a boolean indicating whether thesentence has curly braces on both sides. In other words, the string beginswith ‘{‘ and ends with ‘}’.

The password for your Knewton Alta exam is: practiceThe link…

The password for your Knewton Alta exam is: practiceThe link for the Knewton exam is in the Step 1 folder and you should have opened it in a new tab before you began this test.Instructions:Before you begin your exam, hold up all sheets of paper you will be using to the camera to show that there is nothing written on it.Enter the password found above into the Knewton exam tab open in Step 1 and complete the exam. Once completed, hold up each completed sheet of paper to the camera.Answer the Yes/No question below and proceed to the next question.DO NOT SUBMIT OR CLOSE YOUR TEST before answering all the questions.Question:I have completed and submitted my Knewton exam and I have held up all my sheets of paper (front and back) to record an image of them on the camera.