Posts

Control Flows From Python

     As Other Languages Python also has control flow Statements. They are as follows:- if Statement      It used to check condition according to it control program flow. Syntax: if condition: statement1 statement2 ... if..else Statement      It is used control flow according to condition, If condition evaluates to True, It will execute if block, else block otherwise. Syntax: if condition: statement1 statement2 ... else: statement1 statement2 ... Example: >>> a = 3 >>> b = 9 >>> if b > a: ...  print "B is Max" ... else: ...  print "A is Max" ...  B is Max if..elif..else Statement      Python Doesn't supports switch...case like C or Java, it is replaced with if - elif - else. It first checks if condition if it evaluates true it execu...

Introduction To Python

     Python is simple, easy to use, interpreted programming language, offering much more structure and support for large programs than shell scripts or batch files can offer. Being a very-high-level language, it has high-level data types built in, such as flexible arrays and dictionaries. Because of its more general data types Python is applicable to a much larger problem domain.      As Python is an interpreted language, which can save you considerable time during program development because no compilation and linking is necessary. Python allows you to split your program into modules that can be reused in other Python programs. It comes with a large collection of standard modules that you can use as the basis of your programs or as examples to start learning to program in Python. Some of these modules provide things like file I/O, system calls, sockets, and even interfaces to graphical user interface toolkits like Tk. Pytho...

Getting Started With Python

     Python is an easy to learn, powerful, general purpose programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python’s elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms.     The Python interpreter and the extensive standard library are freely available in source or binary form for all major platforms from the Python Web site, https://www.python.org/ and may be freely distributed. The same site also contains distributions of and pointers to many free third party Python modules, programs and tools, and additional documentation.     The Python interpreter is easily extended with new functions and data types implemented in C or C++ (or other languages callable from C). Python is also suitable as an extension ...