<s> __author__ = "<STR_LIT>" <EOL> '''<STR_LIT>''' <EOL> from queue import Queue <EOL> class Deque ( Queue ) : <EOL> def enqueue_back ( self , item ) : <EOL> self . items . append ( item ) <EOL> def dequeue_front ( self ) : <EOL> return self . items . pop ( <NUM_LIT:0> ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> queue = Deque ( ) <EOL> print ( "<STR_LIT>" , queue . isEmpty ( ) ) <EOL> print ( "<STR_LIT>" ) <EOL> for i in range ( <NUM_LIT:10> ) : <EOL> queue . enqueue ( i ) <EOL> print ( "<STR_LIT>" , queue . size ( ) ) <EOL> print ( "<STR_LIT>" , queue . peek ( ) ) <EOL> print ( "<STR_LIT>" , queue . dequeue ( ) ) <EOL> print ( "<STR_LIT>" , queue . peek ( ) ) <EOL> print ( "<STR_LIT>" , queue . isEmpty ( ) ) <EOL> print ( queue ) <EOL> print ( "<STR_LIT>" ) <EOL> print ( "<STR_LIT>" , queue . dequeue_front ( ) ) <EOL> print ( "<STR_LIT>" , queue . peek ( ) ) <EOL> print ( queue ) <EOL> print ( "<STR_LIT>" ) <EOL> queue . enqueue_back ( <NUM_LIT:50> ) <EOL> print ( "<STR_LIT>" , queue . peek ( ) ) <EOL> print ( queue ) </s>
