Generation

generate functionThu, 13 Apr 2023

calcular la media de tres números pedidos por teclado

def media_numeros(): num1 = int(input('Dame un numero: ')) num2 = int(input('Dame un numero: ')) num3 = int(input('Dame un numero: ')) return (num1 + num2 + num3)/3 media = media_numeros() print(media)

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