Page 238 - AI_Ver_3.0_class_11
P. 238

At a Glance

                    •  Python is a versatile and dynamic programming language renowned for its simplicity, readability, and extensive
                     range of applications.
                    •  Python has two basic programming modes—Interactive mode and Script mode.
                    •  Jupyter Notebook is an open-source web application that allows you to create and share documents that
                     contain live code, equations, visualisations, and narrative text.
                    •  In Python, a character set refers to a collection of characters, typically defined by a specific encoding scheme,
                     such as ASCII (American Standard Code for Information Interchange) or Unicode.
                    •  Identifiers  in  Python  are  names  given  to  various  program  elements  such  as  variables,  functions,  classes,
                     modules, etc.
                    •  Tokens in Python are fundamental elements of the language’s syntax and are the smallest individual units of a
                     program.
                    •  In Python, operators can be defined as special symbols which perform arithmetic and logical computation.
                    •  In Python, comments are used to annotate code with explanations, documentation, or notes.
                    •  Variables in Python are declared simply by assigning a value to them using the assignment operator (=).
                    •  Data types in Python specify the type of values that a variable can hold.
                    •  A CSV file is a popular and widely used format for storing and exchanging tabular data.
                    •  NumPy is a fundamental library in Python that is used for performing numerical computation.
                    •  Pandas is a popular Python library widely used for data manipulation and analysis.
                    •  Scikit-learn is a powerful machine learning library in Python that provides simple and efficient tools for data
                     mining and data analysis.
                    •  The Iris dataset is a classic dataset in machine learning and statistics.




                                                           Exercise




                                                       Solved Questions


                                                SECTION A (Objective Type Questions)
                        uiz
              A.  Tick ( ) the correct option.

                  1.   What is meant by "Python is a dynamically typed language"?
                      a.  You must declare the type of a variable when you create it.

                      b.  The type of a variable is inferred at runtime.
                      c.   Python does not support variable types.
                      d.  Variable types are checked at compile time.
                  2.   Which programming paradigm does Python support?

                      a.   Class-oriented                              b.  Variable-oriented
                      c.   Object-oriented                             d.  All of these
                  3.   Which of the following is NOT a keyword in Python?

                      a.   var                                         b.  async
                      c.   def                                         d.  lambda

                    236     Touchpad Artificial Intelligence (Ver. 3.0)-XI
   233   234   235   236   237   238   239   240   241   242   243