Page 188 - AI Ver 1.0 Class 10
P. 188

• Desktop and GUI Applications:  Python provides the Tkinter library which can be used to develop user
                 interfaces for desktop applications.
                 • Database Access: Python provides database access by supporting different varieties of Databases like MySQL,
                 GadFly, mSQL, PostgreSQL, Microsoft SQL Server 2000 etc.
                 • Business Applications: Python provides business Applications for e-commerce, ERP etc. due its highly scalable,
                 extensible and easily readable feature.
                 • Scientific and Numeric Calculation: SciPy, Pandas, Python are some of the built-in packages in Python which
                 are used for scientific and numeric calculations.

                 • Game Development and 3D Graphics: PySoy (a 3D game engine that supports Python 3) and PyGame are two
                 Python-based libraries used widely for game development. Most of the popular games like Battlefield 2, Frets
                 on Fire, World of Tanks, Disney’s Toontown Online etc. are designed using Python game libraries.
                 • Software Development: Python is used for all purpose software development. It also supports audio and
                 video files that help in designing multimedia applications.


                       Recap of Python Basics


              Python as a programming language was introduced in class 9 in detail. Let us now do a quick recap of some
              important concepts and syntax necessary for writing a program.

              Python Character Set

              A character set can be a set of valid characters like:
                 • Digits from 0 to 9.
                 • Alphabets in upper or lowercase from A to Z or a to z.

                 • Special symbols like $, %, ^, &, *, (, ), @, !, _, ~.
                 • Whitespaces like spacebar, tab key or enter key.

                 • ASCII or UNICODE Characters like emoji symbols or other symbols with unique code.


              What is a Statement in Python?
              Instructions written in a source code and are executed by a Python interpreter are called statements. In Python
              we can write statements in 3 different ways. Let us learn about them in detail.


              Simple Statements
              By default, the end of a statement is done by pressing an enter key. Each statement is written on a new line. For
              example, a=5 is a simple statement where variable a is created with value 5.









              Multiline Statements
              We  can  make  a  statement  that  do  not  fit  in  one  line  can  be  extended  over  multiple  lines  by
              using parentheses (), braces {}, square brackets [], semi-colon (;), continuation character slash (\) as shown below:



                        186   Touchpad Artificial Intelligence-X
   183   184   185   186   187   188   189   190   191   192   193