Python and Visual Studio 2015

Getting started with Python in Visual Studio2015

Python being one of the most powerful languages now with capabilities within Visual Studio 2015 we can make strikingly powerful applications

We will use Visual Studio 2015 template to create a  new app with Python


We  now open a project in Visual Studio with Python option

Screenshot (1367)

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)

Screenshot (1368)

Click on run to see the output.

Screenshot (1369)


We have seen how easy it is to write Python code in Visual Studio 2015 and compile it.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s