Python Exercises with Solution | Learning | python programming | Python Shorts #shorts ytshorts

preview_player
Показать описание
Python shorts playlist:

#python #python3 #learning #coding
Рекомендации по теме
Комментарии
Автор

There are two mistakes: one, the loop has no exit condition in case there isn't any integer exponent appropriate for the task, and two, what if a > 1 and n ==1, you have to also include the case where the exponent is 0, such that a**0 == n, where n == 1. Please fix it

notinla
Автор

It won't terminate nicely if there's no integer solution.

Paul-sjdb