Write a Python class named SimpleQueue that uses a Python li…

Write a Python class named SimpleQueue that uses a Python list internally. Your class must include: • an __init__ method that creates an empty list • an enqueue(value) method that adds value to the rear • a dequeue() method that removes and returns the front value • an is_empty() method that returns True when the queue is empty Then write a few lines of code that create a SimpleQueue, enqueue 10, 20, and 30, dequeue one value, and print the remaining internal list. You may assume dequeue() will not be called on an empty queue.

Write a function named is_balanced(lst) that returns True if…

Write a function named is_balanced(lst) that returns True if lst contains an even number of elements and False otherwise. Examples: is_balanced([1, 2, 3, 4]) returns True is_balanced([1, 2, 3]) returns False Provide the complete function. Part #2.  What is the Big-O time complexity of your function?  Why?