Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created March 5, 2021 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/27bce314da1fab906699db7c20a63904 to your computer and use it in GitHub Desktop.
Save parzibyte/27bce314da1fab906699db7c20a63904 to your computer and use it in GitHub Desktop.
# Otra prueba
numero_usuario = float(input("Ingresa un número: "))
# Convertir solo si es negativo
if numero_usuario < 0:
numero_usuario *= -1
print(f"El número que ingresaste es {numero_usuario} de manera positiva")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment