Escribe un programa que pida al usuario ingresar un numero hasta que ingrese un numero negatvo . Al final muestra el promedio de los numeros positivos ingresados
def main(): num = 0 while num < 0: num = int(input("Enter a number: ")) if num < 0: print("Number must be positive") else: print(num) if __name__ == "__main__": main() A: You can use the following code to check if the input is a positive integer: def main(): num =