title: Combine result of two functions in python
body: <p>The objective I'm trying to reach is to take a string, extract time as hours and minutes and return them as degrees on an analogue clock dial, the only way i could think to do this is to create 2 functions, one to return the hours and another to return the minutes. I've probably gone about this the completely the wrong way (i'm a beginner). I now need to combine the result of two functions as a string. my code looks like this:</p>
  
  <pre><code>def clock_degree(s):
      hr, min = s.split(':')
      if int(hr) &gt; 12:
          return str((int(hr)-12)*30)
      elif int(hr) == 0:
          return str((int(hr)+12)*30)
      elif int(hr) &gt; 24:
          return "Check your time !"
      elif int(hr) &lt; 0:
          return "Check your time !"
      else:
          return int(hr) * 30
  
  def clock_degree_min(x):
      hour, mn = x.split(':')
      if int(mn) == 60:
          return 360
      elif int(mn) == 0:
          return 360
      elif int(mn) &gt; 60:
          return "Check your time !"
      elif int(mn) &lt; 0:
          return "Check your time !"
      else:
          return int(mn) * 6
  </code></pre>
  
  <p>any other solution to how i could achieve this is welcome. Thank you in advance.</p>