('Yellow', 237, 250, 68)
.push_Clr(ClrStack, new_Clr)
: This function takes the stack ClrStack and a new record new_Clr as arguments and pushes this new record onto the stack.pop_Clr(ClrStack)
: This function pops the topmost record from the stack and returns it. If the stack is already empty, the function should display the message "Underflow".isEmpty(ClrStack)
: This function checks whether the stack is empty. If the stack is empty, the function should return True, otherwise the function should return False.def push_Clr(ClrStack, new_Clr): ClrStack.append(new_Clr) print("New color record pushed to stack.")This function uses the append() method
def pop_Clr(ClrStack): if len(ClrStack) == 0: print("Underflow") return None else: return ClrStack.pop()This function first checks if ClrStack is empty
def isEmpty(ClrStack): if len(ClrStack) == 0: return True else: return FalseThis function checks if the length of ClrStack is zero.
Analyse the characters of William Douglas from ‘Deep Water’ and Mukesh from ‘Lost Spring’ in terms of their determination and will power in pursuing their goals.