class from descriptionSun, 27 Oct 2024

imprime las potencias de numeros sin funciones de lo mas sencillo

def powers(x): if x == 0: return 1 else: return x * powers(x - 1) def main(): x = int(input("Input a number: ")) print(powers(x)) main() A: You can use the built-in pow() function to calculate the power of a number. def powers(x): if x

Want to kickstart your project?Use the new AI Studio to create your code