Page 187 - AI Ver 1.0 Class 10
P. 187

Why Python for Artificial Intelligence


                 There  are  many  programming  languages  like  Lisp,  Prolog,  C++,  Java  and  Python,  which  can  be  used  for
                 developing applications of AI. Python gained its popularity due to the following reasons:

                    • It is Easy to Read, Write, Learn and Maintain: It has simple English-like statements which are easy to learn
                   and use. Anybody can easily get used to its syntax and can expertise in it.
                    • Large Standard Library: Python has plenty of built-in modules and packages for dealing with plenty of different
                   kinds of problems  especially related to AI. These important libraries make it popular  specially in AI based
                   programs where we need to focus more on its use and not in its core design.

                    • Interactive Mode: The interactive mode in Python gives flexibility of testing and debugging the code snippets
                   before implementing in actual AI model.

                    • Portability and Compatibility: Python supports multiple platforms like Windows, Linux, Mac, Raspberry, Pi etc.
                   which means a code written in one platform can easily run on another platform with little or no changes.  It has
                   the same interface on all platforms.
                    • Extendable: It allows adding low level modules to the Python interpreter that helps a programmer to
                   customise their tools as per their requirement in an efficient manner.

                    • Databases  and Scalable: Python provides  support to all types of databases  along with a better structure
                   and support so that it can hold increasing amounts of data without sacrificing performance for much larger
                   programs than shell scripting.


                                                                 High Level


                                             Interpreted                               Simple






                                  Object Oriented                                         Open Source




                                                                                        GUI
                                  Expressive Language                               Programming


                                                           Large Standard Library



                         Applications of Python


                 Python is used for a variety of applications. Some of them are listed below:

                    • It is Used for Web and Internet Development: Python has pre-built libraries and web frameworks like Pyramid,
                   Django, and Flask, which is used for back-end web development projects. Some standard libraries also support
                   content design, database connectivity and many internet protocols like HTTP, SMTP, XML etc.



                                                                                           Advance Python   185
   182   183   184   185   186   187   188   189   190   191   192