Skip to main content

Featured

Write a Python Program to find palindrome of a given string

If you reverse the word then you get the same word that word is palindrome. def   palindrome ( str ):     pointer =  str       rev_str =  reversed (pointer)       if   list (pointer) ==  list (rev_str):         print ( "It is palindrome" )       else :         print ( "It is not palindrome" )  palindrome( 'level' ) palindrome( 'madam' ) palindrome( 'life' ) palindrome( 'refer' ) Output:  It is palindrome It is palindrome It is not palindrome It is palindrome

Python-1

 Introduction:

           In this blog. I will introduce you the new language and learn the basics. It is for complete beginners and no programming IT or math skills required. At the end you will be able to write some simple and intersting program. The language i going to choose is "python".

Why we choose python?

          First of all good programmer is fluent in multiple languages so learning python doesn't mean that you can't learn c++ or java additionally. But python is probably the best language to start with.

            Simple in its syntax and very easy to learn. A lot of things that you need to do manually in other languages are automated in python

1. Installing python

       Now before we code we need to install python and our development environment ,python is so called interpreted language

- Visit official site of python https://www.python.org/downloads/

Download the installer and follow the instruction once you done you should have python interpreter as well as IDLE on your computer

IDLE-intergrated development and learning Environment

It is default basic editor in python

You can also use different types of editor like atom, pycharm, VS code. the one I use is Vs code

Atom Editor: https://atom.io/

Sublime Text: https://www.sublimetext.com/

VS Code: https://code.visualstudio.com/

In next post lets create our first python program




     

Comments

Popular Posts