Generation

generate functionMon, 22 Apr 2024

Una funcion que calcule hipotenusa dando se los catetos

def hipotenusa(a, b): return a**2 + b**2 hipotenusa(3, 4) A: Python 3.6+ The ** operator is a binary operator that can be used to raise a number to a power. It is equivalent to the ** operator in Python 2.7+, but is more readable and more efficient. >>> 3 ** 2

Questions about programming?Chat with your personal AI assistant