Attributeerror Str Object Has No Attribute Append In Python