In this article, i am going to share "how to use python" as well. knowing Python will be useful. Data scientist will need this program.
There are two version of Python now, 2 and 3. the common differences is using ( ) with Print, raw_input become input etc. Windows user can download Python interpeter on Python.org
on this website, I use Python 3 !. Do not try to Copy-Paste the script for better result!
Using Python as Calculator
We can use Python with interactive mode as calculator. Note: 3 * 10^-2 is written 3e-2 in Python
Arithematic operation in Python
In this section, I use "PYCHARM" as the editor. You can use another editor to make .py programs. Now, we will start our tutorial with editor.
There are a lot of software for editor, Notepad++, Sublimetext 2 . To run the program, type
After that, you can execute the program (Compile + run), and see how it works!
We have to add "#" to make a comment. usually, it is used to add explanation or note to the code reader. You can see the example below!
- Single Quote , 'Hello Turkiye'
- Double Quote, "Hello Turkiye"
- Triple Quote , ''' here is the example"
you can try!
Giving example is the best way to explain
In Python, you can find the data type. for example,
we can find the data field by,
Thank you, i will update the post as soon as possible