N multiple parties

description

Write a program to calculate the input power of 0 to 5 the number N of power results, and sequentially outputs the results of the 6, between the output separated by spaces. Where: N is an integer or floating point.

print () function may output a plurality of information simultaneously, by the following method may be used for a plurality of spaces divided output:

print(3.14, 1024, 2048)

This platform () function obtained by input test input note, not to increase the input parameters message () are used in the following manner to obtain test inputs and outputs:

a = input()
print(a)

 


Entry

Example 1: 2

 


Export

Example 1: 12,481,632


code show as below:

x = eval(input())
print(x**0, x**1, x**2, x**3, x**4, x**5)


Released seven original articles · won praise 10 · views 6900

Guess you like

Origin blog.csdn.net/zahidzqj/article/details/80709039