help me with this program

Report
Question

Please briefly explain why you feel this question should be reported .

Report
Cancel

how i write a python program that the user enter an integer (a) and then calculate the result of a+a*a+a*a*a+a**a

in progress 0
Python 4 weeks 1 Answer 971 views 0

About dalia

Answer ( 1 )

  1. Please briefly explain why you feel this answer should be reported .

    Report
    Cancel
    # Python 3.x
    a = int(input("Input a number: "))
    result = a+a*a+a*a*a+a**a
    print(result)
    

    Output:
    Enter a number: 2
    18

Leave an answer

Browse

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>