Skip to main content

Python

Why Python?

1. Python is free to use.
2. Python is very beginner-friendly.
3. Python is easy to program and read.
4. The syntax (words and structure) is extremely simple to read and follow, most of which can be understood even if you do not know any programming.
5. Similar to PERL, but with powerful typing and object-oriented features
6. Software Quality: python focus on readability, coherence and software quality in general which sets it apart from other languages in the scripting world.
7. Developer productivity: python code is typically only 30% to 60%  size of the equivalent C++ or  Java(all-time favorite).this means there is less code, less code write, less error, less to debug, less to memory requirement and less to maintain.
8. Program Portability: python program run unchanged on all major computer platforms.Cross-platform {windows, Mac OS, Linux and many more}
9. Support libraries: python comes with tons of prebuilt and portable functionality called as standard Library.
10. Programmers enjoy coding in python because of powerful libraries which produce wonderful results with less code.
         
What can Python do?

1. Python is a fully-functional programming language that can do anything almost any other language can do, at comparable speeds.
2. Python is capable of threading and GPU processing just like any other language. Most of the data processing modules are actually just Python wrappers around C/C++ code.
3. Modules" are pre-written Python code that you "import" in your Python program. Since there are many tasks that people commonly do, we have modules that people have written that do these tasks for you, and they usually do them in the cleanest and most efficient method possible. Sometimes you will see people refer to "DRY." This stands for Don't Repeat Yourself, which often also translates into "Don't Repeat Someone Else."
4. The phrase "wrapper" means that someone has placed, like a wrapper, Python code over another language. So, when you have a Python wrapper around C++ code, what someone has done is written some Python code that interacts with the C++ language. This allows you to make use of various aspects of the language being wrapped, in this case, C++, without actually needing to know or understand that language.
Thus, Python can be used to make games, do data analysis, control robot, and hardware, create GUIs, or even to create websites.
"GUI" stands for Graphical User Interface and is used to describe a program that incorporates graphics to make the program more interactive for the user.

Some programming-language features of Python are:

A variety of basic data types are available: numbers (floating point, complex, and unlimited-length long integers), strings (both ASCII and Unicode), lists, and dictionaries.
Python supports object-oriented programming with classes and multiple inheritance.
Code can be grouped into modules and packages.
The language supports raising and catching exceptions, resulting in cleaner error handling.
Data types are strongly and dynamically typed. Mixing incompatible types (e.g. attempting to add a string and a number) causes an exception to be raised, so errors are caught sooner.
Python contains advanced programming features such as generators and list comprehensions.
Python's automatic memory management frees you from having to manually allocate and free memory in your code.




Comments

Popular posts from this blog

Architecture and pin diagram of 8085

  8085 MICROPROCESSOR 1.1 Hardware Architecture Control Unit Generates signals within Microprocessor to carry out the instruction, which has been decoded. In reality causes certain connections between blocks of the uP to be opened or closed, so that data goes where it is required, and so that ALU operations occur. Arithmetic Logic Unit The ALU performs the actual numerical and logic operation such as „add‟ , „subtract‟ , „AND‟ , „OR‟ , etc. Uses data from memory and from Accumulator to perform arithmetic. Always stores result of operation in Accumulator. Registers The 8085/8080A-programming model includes six registers, one accumulator, and one flag register, as shown in Figure. In addition, it has two 16-bit registers: the stack pointer and the program counter. The 8085/8080A has six general-purpose registers to store 8-bit data; these are identified as B,C,D,E,H, and L as shown in the figure. They can be combined as register pairs...

8085 Memory Interface

8085 Memory Interface Terminology which are used. Memory are made up of registers. Each register consists of one storage location.   Each location consists of an address.  The number of storage locations from few hundreds to several mega or giga locations.   The total number of memory storage is called memory capacity and measured in Bytes.  Each register consists of storage element (FF, capacitor for semiconductor)  A storage element is called cell.  The data could be read from or written to memory. Memory Structure and its requirements As mentioned earlier, read/write memories consist of an array of registers, in which each register has unique address. The size of the memory is N x M as shown below where N is the number of registers and M is the word length, in number of bits1 Summarizes capacity with address Memory Capacity Address lines required 1 k = 1024 memory locations ...