Home > other > Python - computing power input number N of 0 to 5 power as a result, the output and, in turn, these
Python - computing power input number N of 0 to 5 power as a result, the output and, in turn, these
Time:10-09
Computing power input number N of 0 to 5 power as a result, the output and, in turn, these six results, separated by a space between the output, including: N is an integer or floating point number, N=input () Print (* * 1 * * 0 N, N, N * * 2, 3, N * * * * 4 N, N * * 5) Consult a great god, and the code problem in where?
CodePudding user response:
N * * 1, it should be n * * 1
CodePudding user response:
# input () the default STR need to convert the format N=float (input (" both please input a num: "))
Print (* * 1 * * 0 N, N, N * * 2, 3, N * * * * 4 N, N * * 5)