How Does Append Function Work In Python