How to convert a command output from a string to an integer?
Question: I have a script that uses the `time` module in Python to get the current time
in hours, minutes and seconds and store them in three different variables:

    
    
    import time
    
    while True:
         A = time.strftime("%H")
         B = time.strftime("%M")
         C = time.strftime("%S")
    

I want to be able to do some math with these numbers, but they are always
interpreted as strings.

    
    
    A = "07"
    B = "58"
    C = "27"
    

How can I convert the string output of the command into a number that I can do
math with? Whenever I try to multiply them like they are numbers I get outputs
like `"70707070707070707070707"`.


Answer: 
    import time
    
    while True:
         A = int(time.strftime("%H"))
         B = int(time.strftime("%M"))
         C = int(time.strftime("%S"))
    
         # K=A*2+B*3+C*4
    

