Python is one of the most powerful languages now with capabilities within Visual Studio 2015 and we can make strikingly powerful application with it.
We will use Visual Studio 2015 template to create a new app with Python.
Let's take a look at the flow,
We now open a project in Visual Studio with Python option,
Now let's make a simple program.we will just see fibonacci series in Python,
we will use looping technique.
Here is the code for it,
- def fib(n):
- a,b = 1,1
- for i in range(n-1):
- a,b = b,a+b
- return a
- print fib(5)
Click on run to see the output.
Conclusion
We have seen how easy it is to write Python code in Visual Studio 2015 and compile it.