Skip to main content

Posts

Showing posts from January, 2021

Python | Introduction to Matplotlib(Only for knowledge)

  Python | Introduction to Matplotlib) Date: ndsfbdbfhfhdgfdh Matplotlib is an amazing visualization library in Python for 2D plots of arrays.  Matplotlib is a multi-platform data visualization library built on NumPy arrays and designed to work with the broader SciPy stack.  It was introduced by John Hunter in the year 2002. One of the greatest benefits of visualization is that it allows us visual access to huge amounts of data in easily digestible visuals.  Matplotlib consists of several plots like line, bar, scatter, histogram etc. Installation : Windows, Linux and macOS distributions have matplotlib and most of its dependencies as wheel packages. Run the following command to install  matplotlib  package : python -mpip install -U matplotlib   Importing matplotlib : from matplotlib import pyplot as plt or import matplotlib.pyplot as plt Basic plots in Matplotlib : Matplotlib comes with a wide variety of plots. Plots helps to understand trends, patter...

Python For Loop ( Class 11)

  Note:- Read it Carefully: Python Loops The flow of the programs written in any programming language is sequential by default. Sometimes we may need to alter the flow of the program.  The execution of a specific code may need to be repeated several numbers of times. For this purpose, The programming languages provide various types of loops which are capable of repeating some specific code several numbers of times.  Consider the following diagram to understand the working of a loop statement. Why we use loops in python? The looping simplifies the complex problems into the easy ones.  It enables us to alter the flow of the program so that instead of writing the same code again and again, we can repeat the same code for a finite number of times.  For example, if we need to print the first 10 natural numbers then, instead of using the print statement 10 times, we can print inside a loop which runs up to 10 iterations . Advantages of loops There are the following ad...

Class 11 (22-01-2021) only for Computer Science Students

  ☺Note: All Questions are note it in your copy. Question No-1: Evaluate the following C++ expressions where a, b, c are integers and d, f are floating point numbers. The Value of a = 6, b = 2, d = 1.5  a) f = a + b/a b) c = ( a++) * d + b c) c = a – ( b++ ) * (–a) Question No:2 Explain Unary,Binary and Ternary Operators? Give Example of each type. Answer:-            Unary Operators : Operators that operates or works with a single operand are unary operators. Example: (++, –) Binary Operators : Operators that operates or works with two operands are binary operators. Example: +, –, *, /. Example: +, –, *, /.        Ternary Operator : These operator requires 3 expressions or operands to function. Example: Conditional operator- Expression1 ? Expression2 : Expression3 . Here, Expression1 is the condition to be evaluated. If the condition(Expression1) is True then we will execute and return the result of Expression2 el...

CLASS-11 (Python Programming Language)

  Python Programming Language Python is a high-leve l, general-purpose and a very popular programming language. Python programming language (latest Python 3) is being used in web development, Machine Learning applications, along with all cutting edge technology in Software Industry. Python Programming Language is very well suited for Beginners, also for experienced programmers with other programming languages like C++ and Java. Below are some facts about Python Programming Language: Python is currently the most widely used multi-purpose, high-level programming language. Python allows programming in Object-Oriented and Procedural paradigms. Python programs generally are smaller than other programming languages like Java. Programmers have to type relatively less and indentation requirement of the language, makes them readable all the time. Python language is being used by almost all tech-giant companies like – Google, Amazon, Facebook, Instagram, Dropbox, Uber… etc. The biggest stren...