create a main function in python and passing arguments
<p>Iam new with python and I did my first program in Python with jupyter notebook.
Here my tutor, said to me that I have to converti it into a script .py with passing arguments.
I try to do this byte per byte .</p>

<p>Can you just help me how to begin the script and passing New1 and New as arguments.</p>

<pre><code>df_equipment = pd.read_csv('C:/Users/Demonstrator/Downloads/New1.csv',delimiter=';', parse_dates=[0], infer_datetime_format = True)
df_energy2=pd.read_csv('C:/Users/Demonstrator/Downloads/New2.csv', delimiter=';', parse_dates=[0], infer_datetime_format = True)
</code></pre>

<p>Thank you</p>

<p>Here is an example from <a href="http://www.tutorialspoint.com/python/python_functions.htm" rel="nofollow">Pythion Tutorials</a></p>

<pre><code>def printme( str ):
   "This prints a passed string into this function"
   print str
   return;

# Now you can call printme function
printme("I'm first call to user defined function!")
printme("Again second call to the same function")
</code></pre>

python