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

Python Summer Internship Training Report

Java ,html

Uploaded by

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

Python Summer Internship Training Report

Java ,html

Uploaded by

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

Python

Python is a widely used high-level, general-purpose, interpreted, dynamic programming


language. Its design philosophy emphasizes code readability, and its syntax allows programmers
to express concepts in fewer lines of code that would not be possible in languages such as C++
or Java. The language provides constructs intended to enable clear programs on both a small and
large scale.

Python supports multiple programming paradigms, including object-oriented, imperative and


functional programming or procedural styles. It features a dynamic type system and automatic
memory management and has a large and comprehensive standard library. Python interpreters
are available for installation on many operating systems, allowing Python code execution on a
wide variety of systems.

Uses of python
 Web Development
 Game Development
 Data Science
 Data Analytics
 Block Chain
 Software Development
History of python
The programming language Python was conceived in the late 1980s, and its implementation was
started in December 1989 by Guido van Rossum at CWI in Netherlands as a successor
to ABC capable of exception handling and interfacing with the Amoeba operating system. Van
Rossum is Python's principal author, and his continuing central role in deciding the direction of
Python is reflected in the title given to him by the Python community, Benevolent Dictator for
Life (BDFL). (However, Van Rossum stepped down as leader on July 12, 2018).Python was
named after the BBC TV show Monty Python's Flying Circus.

“Python is an experiment in how much freedom programmers need. Too


much freedom and nobody can read another's code; too little and
expressiveness is endangered.”
- Guido van Rossum
Downloading python
If you don’t already have a copy of Python installed on your computer, you will need to open up
your Internet browser and go to the Python download page (http://www.python.org/download/).
Now that you are on the download page, select which of the software builds you would like to
download. For the purposes of this article we will use the most up to date version available
(Python 3.4.1). Following are the steps to downloading python :-

Step 1: Visit the Python Website and Navigate to the Downloads Section

First and foremost step is to open a browser and type Python Download or paste link
(https://www.python.org/downloads/)

Step 2: Choose the Python Version


Click on the version you want to download. – Python 3.12.3 (the latest stable
release as of now is Python 3.12.3).

Step 3: Download the Python Installer


Once the download is complete, run the installer program. On Windows , it will
typically be a .exe file , on macOS , it will be a .pkg file , and on Linux , it will be
a .tar.gz file.
Installing Python on Windows

Here we are providing the installation process of Python 3.11.2 on Windows


 Run the Python Installer for how to install Python on the Windows downloads
folder
 Make sure to mark Add Python to PATH otherwise you will have to do it
explicitly. It will start installing Python on Windows.

 After installation is complete click on Close . Bingo..!! Python is installed. Now


go to Windows and type IDLE.
Data Types
Data types determine whether an object can do something, or whether it just would not make
sense. Other programming languages often determine whether an operation makes sense for an
object by making sure the object can never be stored somewhere where the operation will be
performed on the object (this type system is called static typing). Python does not do that. Instead
it stores the type of an object with the object, and checks when the operation is performed
whether that operation makes sense for that object.

Python has many native data types. Here are the important ones:

 Booleans are either True or False.


 Numbers can be integers (1 and 2), floats (1.1 and 1.2),
fractions (1/2 and 2/3), or even complex numbers.
 Strings are sequences of Unicode characters, e.g. an HTML
document.
 Bytes and byte arrays, e.g. a JPEG image file.
 Lists are ordered sequences of values.
 Tuples are ordered, immutable sequences of values.
 Sets are unordered bags of values.
Object Oriented Programming Language
Object-oriented programming (OOP) is a programming paradigm based on the concept of
"objects", which may contain data, in the form of fields, often known as attributes; and code, in
the form of procedures, often known as methods. A distinguishing feature of objects is that an
object's procedures can access and often modify the data fields of the object with which they are
associated (objects have a notion of "this" or "self"). In OO programming, computer programs
are designed by making them out of objects that interact with one another. There is significant
diversity in object oriented programming, but most popular languages are class-based, meaning
that objects are instances of classes, which typically also determines their type.

# How Do You Define a Class in Python?


In Python, you define a class by using the class keyword followed by a name and a colon. Then
you use .__init__() to declare which attributes each instance of the class should have:

Python
class Employee:
def __init__(self, name, age):
self.name = name
self.age = age

You might also like