'''

    main.py

    Created by <NAME> on 2021
    Copyright © 2021 <NAME>. All rights reserved.

'''


class Solution:
    def arrayPairSum(self, nums: List[int]) -> int:
        return sum(sorted(nums)[::2])
'''

    main.py

    Created by <NAME> on 2021
    Copyright © 2021 <NAME>. All rights reserved.

'''


class Solution:
    def arrayPairSum(self, nums: List[int]) -> int:
        return sum(sorted(nums)[::2])
main.py      Created by <NAME> on 2021     Copyright © 2021 <NAME>. All rights reserved.