Question
Write a function in python that will identify quote strings in the given list of characters and store them as single objects instead of single
Write a function in python that will identify quote strings in the given list of characters and store them as single objects instead of single characters. Quote Strings start with a single quote ' and end with a single quote ' (Must not include the quotes in the string object) charachters=['#', '!', 'E', 'x', 'a', 'm', 'p', 'l', 'e', 'S', 'n', 'o', 'w', 'f', 'l', 'a', 'k', 'e', 'p', 'r', 'o', 'g', 'r', 'a', 'm', '!', '#', ' ', 'p', 'a', 'r', 'm', 'g', 'o', 'a', 't', 'c', 'o', 'w', ';', ' ', 's', 't', 'a', 'r', '=', "'", '*', "'", ';', ' ', 'w', 'h', 'i', 'l', 'e', 'g', 'o', 'a', 't', 'c', 'o', 'w', '{', '\t', '\t', '#', 'r', 'e', 'p', 'e', 'a', 't', 'u', 'n', 'l', 'e', 's', 's', 'i', 't', 'c', 'a', 'n', "'", 't', 'f', 'i', 'n', 'd', 'a', 'c', 'o', 'w', ' ', '\t', 'g', 'o', 'a', 't', 'c', 'o', 'w', '=', 's', 't', 'a', 'r', ';', ' ', '\t', 's', 't', 'a', 'r', '=', 's', 't', 'a', 'r', "'", '*', "'", ';', '\t', '#', 'e', 'x', 'a', 'm', 'p', 'l', 'e', 'o', 'f', 'c', 'o', 'n', 'c', 'a', 't', 'e', 'n', 'a', 't', 'i', 'o', 'n', ' ', '}', ' ', 'r', 'e', 't', 'u', 'r', 'n', 'g', 'o', 'a', 't', ';', ' ']
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started