how to show a whole and a float separately? 2.83 print (2) print (83)

-1
numero = int(input("Ingresa un numero:"))
h= str("minutos")
#min= numero//60
print (min)
print (h)
dec = round((numero*60),2)

Exercise 1.4

Write a code in which you request by screen that the user enter a number (the units are seconds). Once the number is entered, calculate:

  • Number of minutes of the entered value
  • Number of seconds remaining.
  • Print both values on the screen.

    Example: if the user enters 90, that would print 1 minute and 30 seconds.

    Tip: Read about the function input()

        
    asked by Boanengers 20.10.2018 в 01:12
    source

    1 answer

    0
    try:
         numero = int(input("Ingresa un numero:"))
         min = int(número/60)
         seg = int(numero%60)
         print("%s minuto y %s segundos" % (min, seg))
    except:
         print("valor ingresado no es válido")
    
        
    answered by 21.10.2018 в 06:01