Sunday, 26 February 2017

Top 5 reasons to learn python

Top 5 reasons to learn python:


1).python having Intuitive data structures:

                Lists, Tuples, Sets, Dictionaries
                                Powerful, yet simple and intuitive to use flexible(mixed data types)


2).python having simple commands:

                In java:  string name=”bob”;                                       in python: name=”bob”
                                System.out.println(name);                                                print(name)



3) Sometimes python is a one liners:

                Elegant 1-line solution to what takes a whole block of code in other languages.
                Example: swap x and y
                                In java:                                                                 in python:
                                Int temp=x;                                                        x,y=y,x
                                         X=y;
                                         Y=temp;


4).python language having Simple Syntax:

                Some programming languages will kill you with () [] {} , : with python you spend less time debugging syntax and more time programming

5).python is a dynamically typed language:

                No type when declaring a variable, skip headaches of java type casting
                Ex:  in java: int x=1;                          in python: x=1

                                    X=(int)x/2;                                            x=x/2

No comments:

Post a Comment