#!/usr/bin/env python
# coding=utf-8

from functools import reduce

def addx(x):
    numbers = range((x+1))
    r = reduce(lambda x,y: x+y, numbers)
    return r

if __name__ == "__main__":
    x = int(input("please input a interger:"))
    print("0+1+2...+{0}".format(x))
    print(addx(x))

009fc2896b771d976b04b2faa7d64b1cf5c0ddf8
<mask token>

<mask token>


def addx(x):
    numbers = range(x + 1)
    r = reduce(lambda x, y: x + y, numbers)
    return r


<mask token>

<mask token>


def addx(x):
    numbers = range(x + 1)
    r = reduce(lambda x, y: x + y, numbers)
    return r


if __name__ == '__main__':
    x = int(input('please input a interger:'))
    print('0+1+2...+{0}'.format(x))
    print(addx(x))

from functools import reduce


def addx(x):
    numbers = range(x + 1)
    r = reduce(lambda x, y: x + y, numbers)
    return r


if __name__ == '__main__':
    x = int(input('please input a interger:'))
    print('0+1+2...+{0}'.format(x))
    print(addx(x))

#!/usr/bin/env python
# coding=utf-8

from functools import reduce

def addx(x):
    numbers = range((x+1))
    r = reduce(lambda x,y: x+y, numbers)
    return r

if __name__ == "__main__":
    x = int(input("please input a interger:"))
    print("0+1+2...+{0}".format(x))
    print(addx(x))
