title: return value from python script to shell script
body: <p>I am new in Python. I am creating a Python script that returns a string &quot;hello world.&quot; And I am creating a shell script. I am adding a call from the shell to a Python script.</p>
  <ol>
  <li>i need to pass arguments from the shell to Python.</li>
  <li>i need to print the value returned from Python in the shell script.</li>
  </ol>
  <p>This is my code:</p>
  <p><strong>shellscript1.sh</strong></p>
  <pre><code>#!/bin/bash
  # script for testing
  clear
  echo &quot;............script started............&quot;
  sleep 1
  python python/pythonScript1.py
  exit
  </code></pre>
  <p><strong>pythonScript1.py</strong></p>
  <pre><code>#!/usr/bin/python
  import sys
  
  print &quot;Starting python script!&quot;
  try:
      sys.exit('helloWorld1') 
  except:
       sys.exit('helloWorld2') 
  </code></pre>