What will be the correct output of the following Python code?
def part1():
low = 365
up = 372
for num in range(low, up + 1):
order = len(str(num))
s = 0
temp = num
while temp > 0:
digit = temp % 10
s += digit ** order
temp //= 10
if num == s:
print(num)
part1()
Correct Answer:
370
371
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Python MCQ Questions