Python Playground - Sum of first x natural numbers in pow(x,n): Online Interpreter, Compiler & Editor | Sololearn