0% found this document useful (0 votes)
14 views

Introduction To Python Programming - 16 - 10 - 2024

Intro of python programming

Uploaded by

visionias62
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Introduction To Python Programming - 16 - 10 - 2024

Intro of python programming

Uploaded by

visionias62
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Why Programming?

In [ ]: --> 12*3 = 36
--> 12*30*20 = 7200
--> 9865*96532*7653*975 --> Complex --> Computer/Calculator

--> 50 Rows in Excel --> Remove Duplicates From Excel --> Easy
--> 50 Million rows in Excel --> Remove Duplicates From Excel --> Complex

--> To Solve Comlex Problems in an Efficient(Quick) Manner.


--> To Solve Complex Problem we are Dependent on Machine/Computers.

Example
In [2]: 9865*96532*7653*975

Out[2]: 7105664905501500

High Level Language , Machine Language and Compilers


In [ ]: High Level Language --> English Type of Language(Syntax is Similar to English)

Machine Language --> Binary Type of Language(0'S AND 1'S)

Compilers --> Compilers are used to Convert High Level Code to Machine Code.

What is Program and What is Computer Programming?


In [ ]: Program/Code --> are the Set of Instructions which tells computer how and what task needs to
be done.

Computer Programming --> The Process of Creating set of instructions(Programs) which tells
computer what and how the task needs to done so that computer will
execute that task to get the desired result.

Computer Programming will be done with the help Programming Language:

1. Python --> Syntax is available for writing instructions

2. Java --> Syntax is available for writing instructions

3. C++ --> Syntax is available for writing instructions

4. C --> Syntax is available for writing instructions

ETC..

Meaning of Syntax
In [ ]: English --> Grammer --> Set of rules for English Language.

Hindi --> Grammer --> Set of rules for Hindi Language.

Python --> Grammer(Syntax) --> Set of rules for Python Language.

Java --> Grammer(Syntax) --> Set of rules for Java Langauge.

Note : We can write instructions in any of the Programming Language but the compiler(Translator) must
know the syntax of that Programming Language.

For Data Science What are the Programming Language which are Preferred?
In [ ]: 1. Python Language --> Most Preferred Language for Data Science --> Python is a General Purpose Language.

2. R Language --> Second Preferred Choice for Data Science --> R is a Language specific to Data Science.

What is Python?
In [ ]: --> Python is a General Purpose High Level Programming Language.

--> General Purpose Language --> We can use Python any where any time(All Rounder)
--> General Purpose means Common Purpose.

--> High Level Language --> Syntax is Similar to English Language.

Example
In [12]: 98+475+324893

Out[12]: 325466

Where we can use Python?


In [ ]: 1. Data Analytics
2. Game Development
3. Software Development
4. Data Science
5. Machine Learning
6. Deep Learning
7. Automation Development
8. Desktop Application
9. Testing
10. Web Development

ETC.....

Where Python is not Recommended?


In [ ]: 1. Android App development --> Java and Kotlin --> Python is slower as compare to Java.

2. Compiler Design --> C/C++ Language

Editor vs IDE
In [ ]: Editor --> Wherever we are writing a code is nothing but an Editor.

IDES --> Integrated Development Learning Enviornment.


--> IDE's are nothing but the combination of Editor and Compiler.

IDES --> Editor+Compiler --> You can write your code and You can run Your Code.

Example of IDE'S : Google Colab , Jupyter Notebook,Spyder,Pycharm,IDLE ETC.

Example of Editor : Notepad

About Google Colab


In [ ]: --> It is a Cloud(Web) Based IDE So we need not install any software in our system for writing
Python Code.

--> Google Colab is running with Google Backend Engine Server.

--> All the Files which we are creating in google colab will automatically saved in Google Drive.

--> For Using Google Colab we must have gmail account.

--> For first time execution google colab will take little bit of time.

--> Google Colab file is known as Colab Notebook.

--> The Extension of Google Colab Notebook and Jupyter Notebook is .ipynb(Interactive Python Notebook).

Some Basic Step/Command for Google Colab


In [ ]: Rectangular Box : is known as Cell(Where we can write code)

Execute the Code : Triangle inside circle button along with cell.
: Short cut --> Ctrl+Enter

Add More Cell : Click on + Code to get new cell for Coding

For Writing heading Notebook : Click on + Text to get a cell for Heading and Text
Delete a Cell : Click on dustbin button present in a cell.
: Short cut --> CTRL+M

Execute and move to Next Cell: Short cut --> Shift+Enter

You might also like