Lecture 01

 



What is python?

·        Python is a high level language like other high level language such as Java,C,C++,PHP,Ruby and Perl.

·        Python is designed by Guido van Rossum in 1991.

·        It supports multiple programming paradigms,including object oriented and functional programming.

·        Python is used as a server to create web applications.

·        Python has a simple syntax similar to English language and python is used for software development.

What can python do?

·        Python can be used to handle big data and perform complex mathematics.

·        It is used for rapid prototyping for software development.

·        Python can connect to database systems and it can also read and modify files.

Why we use python?

·        Python works on different platforms(windows,linux,mac..etc).

·        Python has simple syntax that allows developers to write programs with fewer lines than other programming languages.

·        Compare to other programming languages python as simple syntax that can be understood easily.

·        And it is very easy to implement .

Features of python:

  • 1.      Easy to understand
  • 2.      Less development time
  • 3.      Free and open source
  • 4.      Portable
  • 5.      High level language

Installation of python:

Python can be easily installed from python.org.when you click on download button python can be easily installed ,after that complete setup by executing the file.

We can practice programmes in pycharm platform or visual studio(vs)code also.

Is python case sensitive language?

Yes,python is a case sensitive language ,because it differentiates the lower case and upper case identifiers.

Advantages of python:

1.      Python is very flexible and case sensitive language.

2.      Python is free and open source language.

3.      Python runs on various platform like Mac,Window,Linux..etc.

4.      Python is a object oriented language.

Simple program:

1.      Print(“Hello world”)   #here print is a function

 

        Output:

        Hello world

2.      2. Print(“Avniet college”)

       Output:

       Avniet college

  Comments in Python :

l Single line comment:

Ex: 

 #This is a comment

print("Hello, World!")

l  Multi line comment:

 Ex:

"""
This is a comment
written in
more than just one line
"""

print("Hello, World!")

 

Python modules:

A  module is a file containing code written by somebody else which can be imported and used in our programs.

->there are two types of modules;

1)    Built in modules:these modules are already installed in python.

2)    External modules :these we need to install using pip.


0 Comments

Types of Arrays in C Programming | Lecture 10

In C programming, arrays are a fundamental concept that allows you to store multiple values of the same data type in a single variable. Instead of using multiple variables to store similar data, arrays make it easier to manage and manipulate these values. Types of Arrays There are two main types of arrays in C: One-Dimensional Arrays Multi-Dimensional Arrays One-Dimensional Arrays A one-dimensional array is like a list where all the elements are stored in a single row or column. It uses only one subscript to access each element. Declaration: DataType variable_name[size]; Here, DataType is the type of elements (e.g., int , float ), variable_name is the name of the array, and size is the number of elements the array can hold. Example: Declaring an integer array with 5 elements: int number[5]; This array can store 5 integers, with indices ranging from 0 to 4. Initialization of One-Dimensional Arrays Arrays can be initialized at the time of...