CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
Why Python in required in Civil Engineering
1. Why Python
Prof. Rushikesh V. Kolhe
Phd Pursuing, M.Tech Civil CM
Assistant Professor
Department of Civil Engineering
Sanjivani College of Engineering, Kopargaon
2. What is Python…?
Differences between programming and scripting language
Programming Paradigms
History of Python
Scope of Python
Why do people use Python?
Installing Python
What you learn
3. Python is a general purpose, dynamic, high level and interpreted programming
language.
Python is easy to learn yet powerful and versatile scripting language which makes it
attractive for Application Development
Python supports multiple programming pattern, including object oriented, imperative
and functional or procedural programming styles.
Python is not intended to work on special area such as Machine learning,Web
programming. That is why it is known as multipurpose because it can be used with
web, enterprise, Machine learning.
We don't need to use data types to declare variable because it is dynamically typed
so we can write x=30 to assign an integer value in an integer variable.
Python makes the development and debugging fast because there is no compilation
step included in python development and edit-test-debug cycle is very fast.
What is Python…?
4. Differences between programming
and script Language
Programming language mostly use
Compiler.
Examples include C, C++, and Java
Generally compiled
Typically faster in execution
Often used for system-level or
standalone application
development
Can have a more complex syntax
Ideal for building complex,
resource-intensive applications
like operating systems.
scripting Language is use Interpreter
Examples include Python,
JavaScript, and Perl.
Generally interpreted
Tend to be slower because the code
is interpreted at runtime
Typically used for automating tasks
Often designed to be easier to learn
and write
Best suited for smaller or medium-
sized programs, automation scripts,
web development
5. Programming Paradigms
Object-oriented programming is a programming
approach that focuses on Object.
Procedure-oriented programming focuses on
procedural abstractions.
6. Object-Oriented Programming (OOP):
Basic Unit: The basic unit of OOP is the object. Objects are instances of classes that
encapsulate both data and methods (functions) that operate on the data.
Examples of OOP Languages: Java, C++, Python, C#, etc.
Advantages:
Improved software maintainability due to modularity.
Easier to manage complexity by hiding details with abstraction.
Reusability through inheritance.
Flexibility and scalability through polymorphism.
Disadvantages:
Can be slower due to additional layers of abstraction.
May consume more memory.
Requires more design effort and a deeper understanding of OOP principles.
7. Procedural Programming:
Basic Unit: The basic unit of procedural programming is the function. Programs are divided
into functions that perform specific tasks.
Examples of Procedural Languages: C, Fortran, Pascal, BASIC, etc.
Advantages:
Simpler and easier to understand and write.
Faster execution time, as there's no overhead of jumping between different contexts.
Uses less memory compared to OOP.
Disadvantages:
Not suitable for large, complex applications.
Harder to maintain as the project size grows.
Lack of reusability, encapsulation, and abstraction can lead to code redundancy and a
higher chance for errors.
8. OOP follows a bottom-up approach.
Program is divided into objects depending on
the problem.
Each object controls its own data.
Data hiding is possible in OOP.
Inheritance is allowed in OOP.
Operator overloading is not allowed
POP follows a top-down approach.
Program is divided into small chunks based
on the functions.
Each function contains different data.
No easy way for data hiding.
No such concept of inheritance in POP.
Operator overloading is allowed.
Difference between OOP and POP
9. History of Python
The implementation of Python was started in the December
1989 by Guido Van Rossum at CWI in Netherland.
Why was python created?
"My original motivation for creating Python was the perceived need for a higher level
language in the Amoeba [Operating Systems] project.
I realized that the development of system administration utilities in C was taking too
long.Moreover, doing these things in the Bourne shell wouldn't work for a variety of
reasons. ...
So, there was a need for a language that would bridge the gap between C and the
shell”
- Guido Van Rossum
10. Python Version Released Date
Python 1.0
Python 1.5
Python 1.6
Python 2.0
Python 2.1
Python 2.2
Python 2.3
Python 2.4
Python 2.5
Python 2.6
Python 2.7
Python 3.0
Python 3.1
Python 3.2
Python 3.3
Python 3.4
Python 3.5
Python 3.6
Python 3.7
January 1994
December 31, 1997
September 5, 2000
October 16, 2000
April 17, 2001
December 21, 2001
July 29, 2003
November 30, 2004
September 19, 2006
October 1, 2008
July 3, 2010
December 3, 2008
June 27, 2009
February 20, 2011
September 29, 2012
March 16, 2014
September 13, 2015
December 23, 2016
June 27, 2018
11. 1) Web Applications
We can use Python to develop web applications. It provides libraries to handle internet
protocols such as HTML and XML, JSON, Email processing, request, beautifulSoup,
Feedparser etc.
2) Desktop GUI Applications
Python provides Tk GUI library to develop user interface in python based application.
3) Software Development
Python is helpful for software development process. It works as a support language and can
be used for build control and management, testing etc.
4) Scientific and Numeric
Python is popular and widely used in scientific and numeric computing. Some useful library
and package are SciPy, Pandas, IPython etc. SciPy is group of packages of engineering,
science and mathematics.
Scope of Python
12. 5) Business Applications
Python is used to build Bussiness applications like ERP and e-commerce systems.
6) Console Based Application
We can use Python to develop console based applications.
7) System Administrator
Python is awesome to perform multiple tasks ,using script its easy to perform mutiple
tasks simultaneously.
8) 3D CAD Applications
To create CAD application Fandango is a real application which provides full features of
CAD.
9) Enterprise Applications
Python can be used to create applications which can be used within an Enterprise or an
Organization.
There are several types of applications which can be developed using Python
Scope of Python
13. 1) Easy to Learn and Use
Python is easy to learn and use. It is developer-friendly and high level programming
language.
2) Expressive Language
Python language is more expressive means that it is more understandable and readable.
3) Interpreted Language
Python is an interpreted language i.e. interpreter executes the code line by line at a time.
This makes debugging easy and thus suitable for beginners.
4) Cross-platform Language
Python can run equally on different platforms such as Windows, Linux, Unix and Macintosh
etc. So, we can say that Python is a portable language.
5) Free and Open Source
Python language is freely available at offical web address.The source-code is also available.
Therefore it is open source.
Why do people use Python?
14. 6) Object-Oriented Language
Python supports object oriented language
7) Extensible
It implies that other languages such as C/C++ can be used to compile the code and thus it can
be used further in our python code.
8) Large Standard Library
Python has a large and broad library and prvides rich set of module and functions for rapid
application development.
9) GUI Programming Support
Graphical user interfaces can be developed using Python.
10) Integrated
It can be easily integrated with languages like C, C++, JAVA etc.
Why do people use Python?