Stairway to Python





First Program with Python:

Lets begin our first program with some of String operations.Python has a built in String class named “str” with many handy features.String literals can be enclosed by either double or single quotes, although single quotes are more commonly used. if you want to use Multi line String then you have to use triple quotes.

First Program

Lets assign three different strings to three different variables and print them.
To start with, open Python IDLE under Start –>Programs
or Type Python Under Run prompt

IDLE is an Interactive interpreter, however, you can’t execute more than one statement at a time.
If you want to execute a multi line code program, just copy and paste the below code by opening a new file (CTRL+N) and save it. Then, you can execute the code in the file with ‘key board short cut F5’. output can be seen in the IDLE as shown below:

str1='Single Quote'
str2="Double Quotes"
str3='''This is sentence has more
than one line '''

First program

If you face any error while executing the code or any doubts ,post your query in comments section , happy to assist you.

My First blog post – SQLZealot

Hi Everyone,

Hope all are doing good.

I finally decided to blog my experiences in SQL Server here. During MVP meet Jan 2015, I have been inspired by two of SQL MVP fellows – Visakh & Madhivanan on sharing the experiences through blogs with more details. Thanks to both of you motivating me on the same.

Here, I will be sharing my experience and learning for my future reference and for community purposes as well. Hope you all will be enjoying the site. Please share your thoughts on the same.

My Facebook Page 

My Linked-In Page