Find an unnecessary comment

Report a typo

Imagine that your skillful friend has created a code for beginner programmers who need to learn more about Python's syntax. The program raises a given integer to the given power.

Your friend also commented some lines. Have a look at the code below. Which of the comments is unnecessary? Copy this comment without # in the text field below.

integer = 2
power = 8
result = integer ** power  # ** is used for raising to the nth power
print(result)  # print the result
Enter a short text
___

Create a free account to access the full topic