title: Changing the int and string from a string
body: <p>The <code>format_address</code> function separates out parts of the address string into new strings: <code>house_number</code> and <code>street_name</code>, and returns: <code>&quot;house number X on street named Y&quot;</code>.</p>
  <p>The format of the input string is: numeric house number, followed by the street name which may contain numbers, but never by themselves, and could be several words long. For example, <code>&quot;123 Main Street&quot;</code>, <code>&quot;1001 1st Ave&quot;</code>, or <code>&quot;55 North Center Drive&quot;</code>.</p>
  <p>Fill in the gaps to complete this function.</p>
  <pre class="lang-py prettyprint-override"><code>def format_address(address_string):
    # Declare variables
    house_number=' '
    street_name=&quot; &quot;
  
    # Separate the address string into parts
    x=address_string.split(&quot; &quot;)
    # Traverse through the address parts
    for y in x:
      if(y.isdigit()):
        house_number=y
      else:
        street_name+=y
        street_name+=' '
      # Determine if the address part is the
      # house number or part of the street name
   # Does anything else need to be done 
    # before returning the result?
    
    # Return the formatted string  
      return &quot;house number {} on street named {}&quot;.format(house_number,street_name)
  
  print(format_address(&quot;123 Main Street&quot;))
  # Should print: &quot;house number 123 on street named Main Street&quot;
  </code></pre>
  <p>But it is showing output as :</p>
  <pre><code>house number 123 on street named  
  house number 1001 on street named  
  house number 55 on street named  
  </code></pre>