title: simple print statement is not working inside method with if statement in python
body: <p>I started learning Python code recently and one simple print statement is giving me trouble since last 4 days.</p>
  
  <p><strong>Problem:</strong> the print statement is not working inside the <code>validatePostcode(postcode)</code> method for if-statement. The assigned value is 200 (status code) which is printing fine without the if-statement. Also, when I compare with the True (result value) for that API it works fine without if-statement, why it is not working after I apply the if and try to compare?</p>
  
  <p><strong>Error:</strong> </p>
  
  <pre><code>  File "./py_script3.py", line 32
      print ("Congrats")
          ^
  IndentationError: expected an indented block
  </code></pre>
  
  <hr>
  
  <pre><code>    #!/usr/bin/env python3
  
  
      import os,re,sys
  
  
      import urllib.request as req
      import json
  
      def loadJsonResponse(url):
          #return json.loads(req.urlopen(url).read().decode('utf-8'))['result']
          #return json.loads(req.urlopen(url).read().decode('utf-8'))['status']
          print ("I am in loadJsonResponse before returning string")
          string = json.loads(req.urlopen(url).read().decode('utf-8'))
          return string
          print ("I am in loadJsonResponse after returning string")
  
      def lookuppostcode(postcode):
          url = 'https://api.postcodes.io/postcodes/{}'.format(postcode)
          return loadJsonResponse(url)
  
      def validatePostcode(postcode):
          url = 'https://api.postcodes.io/postcodes/{}/validate'.format(postcode)
          #return loadJsonResponse(url)
          string = json.loads(req.urlopen(url).read().decode('utf-8'))
          Value = str(string['status'])
          print (Value)
          if Value == 200 :
          print ("Congrats")
  
      def randomPostcode():
          url = 'https://api.postcodes.io/random/postcodes'
          return loadJsonResponse(url)
  
      def queryPostcode(postcode):
          url = 'https://api.postcodes.io/postcodes?q={}'.format(postcode)
          return loadJsonResponse(url)
  
      def getAutoCompletePostcode(postcode):
          url = 'https://api.postcodes.io/postcodes/{}/autocomplete'.format(postcode)
          return loadJsonResponse(url)
  
      #Input = input("Enter the postcode : ")
      #print(lookuppostcode('CB3 0FA'))
      validatePostcode('CB3 0FA')
      #print(queryPostcode('HU88BT'))
      #print(randomPostcode(Input))
  </code></pre>