Wa0028
Wa0028
INTRODUCTION
Python Programming internship was an enriching and transformative experience that allowed
to dive deep into the realm of software development.
The intensive learning experience significantly impacted the coding journey. In just two
weeks, immersed in Python development, gained practical insights, and contributed to real-world
projects.
During this immersive internship, worked closely with a talented team of developers who
guided through various aspects of Python programming. From enhancing understanding of Python
syntax and data structures to exploring its versatile libraries and frameworks.
OBJECTIVES
The primary objective of the internship was to gain hands-on experience with Python
programming, enhance my understanding of its concepts, and apply the acquired knowledge to
real- world projects.
⮚ Gain proficiency in Python Programming language.
⮚ Understand the principles of software development using Python.
⮚ Apply Python Programming to develop practical applications or solutions.
⮚ Collaborate with a team and contribute to project development.
⮚ Improve problem-solving and debugging skills using Python Programming
GOALS
1
CHAPTER II
COMPANY PROFILE
Head Office
Name : Durga Tech
Address :Near Bus Stand, Erode, Tamilnadu-638 003
Mobile No:7373176107
Mail.id : durgatech@gmail.com
CHAP
TER III
TECHNOLOGY LEARNT
Python is a high-level, interpreted programming language that is easy to learn and understand. It
was created in the late 1980s by Guido van Rossum and was first released in 1991.
FEATURES OF PYTHON
1. Easy to Learn: Python has a simple syntax and is relatively easy to learn, making it a great
language for beginners.
2. High-Level Language: Python is a high-level language, meaning it abstracts away many low-
level details, allowing developers to focus on the logic of their program.
3. Interpreted Language: Python code is interpreted line by line, making it easier to debug and test.
4. Object-Oriented: Python supports object-oriented programming (OOP) concepts, such as
class,objects, inheritance, and polymorphism.
5. Cross-Platform: Python can run on multiple operating systems, including Windows,
macOS, and Linux.
6. Large Standard Library: Python has an extensive collection of libraries and modules that make
it easy to perform various tasks.
APPLICATIONS OF PYTHON
• Web Development: Python is used in web development frameworks like Django and Flask.
• Data Analysis and Science: Python is widely used in data analysis, machine learning,
and scientific computing.
• Automation: Python is used for automating tasks, such as data entry and file management.
• Artificial Intelligence and Robotics: Python is used in AI and robotics applications.
• Education: Python is often taught in introductory programming courses.
• Machine learning
• Game development
• Animation
• Educational software
• Mobile app development
• Internet of Things
Python has a simple syntax similar to the English language. Python has syntax that allows
developers to write programs with fewer lines than some other programming languages. Python
runs on an interpreter system, meaning that code can be executed as soon as it is written. This
means that prototyping can be very quick.
OBJECT ORIENTED PROGRAMING(OOPS)
In python,Object Oriented Programming is a programming paradigm that uses objects and classes in
programming. It is used to bind the data and the functions that work together as a single unit.
The Major OOPs concept in python are
Class
Object
Inheritance
Encapsulation
Polymorphism
Abstraction
CLASSES AND OBJECTS
Classes: Collection of objects
Objects: instances of classes
Example:
class Person:
def _init_(self, name, age):
self.name = name
self.age = age
def greet(self):
print(f"Hello, my name is {self.name} and I am {self.age} years old.")
person1.greet()
Output:
Alice
30
INHERITANCE:
Example:
class Car:
def _init_(self, color, model):
self.color = color
self.model = model
class ElectricCar(Car):
def _init_(self, color, model, battery_capacity):
super()._init_(color, model) # parent class's constructor
self.battery_capacity = battery_capacity
my_electric_car = ElectricCar("blue", "Tesla", 75)
print(my_electric_car.color)
Output:
blue
POLYMORPHISM:
Example:
class Cat:
def sound(self):
return "Meow"
class Dog:
def sound(self):
return "Bark"
class Lion
def sound(self):
return "Roar"
class Elephant
def sound(self):
return "Trumpet"
def animal_sound(animal):
print(animal.sound())
# Demonstrating polymorphism
animal_sound(my_cat)
animal_sound(my_dog)
animal_sound(my_lion)
animal_sound(my_elephant)
Output:
Meow
Bark
Roar
Trumpet
DATA TYPES:
Data type is a set of values, and the allowable operations on those values.It
represents the kind of value that tells what operations can be performed on a
particular data.
Numeric:
The numeric data type in Python represents the data that has a numeric value.A numeric value
can be
Integers - This value is represented by int class. It contains positive or negative
whole numbers.
Float – This value is represented by the float class. It is a real number with a
floating-point representation.
Complex Numbers – A complex number is represented by a complex class. It is
specified as (real part) + (imaginary part)j . For example – 2+3j
Sequence datatype:
There are several types of sequence datatype in python.
Python String
Python list
Python tuple
String:
A string is a collection of one or more characters put in a single quote, double-quote, or
triple-quote. In Python, there is no character data type Python, a character is a string of length one.
List:
List are just like arrays, declared in other languages which is an ordered collection of data. It is
very flexible as the items in a list do not need to be of the same type.Lists in Python can be created
inside square brackets[].
Tuples:
Tuples are created by placing a sequence of values separated by a ‘comma’ with or without the
parentheses for grouping the data sequence.
JgcKEYWORDS:
Keywords are the reserved words which are used by the interpreter to recognize the
structure of the program, they cannot be used as variable name.
Some of the key words are if, else, class, break, continue, and , or, def, etc..,
Operator is a symbol that does some operation on one or more than one values or variables.
The values or variables on which operation is done is called operand. The operator(s) together with
value(s) or/and variables, is called expression.
EXAMPLE:
3+4 Here,+ is operator.3, 4 are
example,
LOGI
CAL OPERATORS
RELATIONAL OPERATORS
FILE INPUT/OUTPUT
When working with files, you need to specify the mode in which you want to open the file:
Methods:
● r - Read (default)
● w - Write (overwrite existing file)
● a - Append (add to existing file)
● r+ - Read and Write
● w+ - Read and Write (overwrite existing file)
● a+ - Read and Append
● x - Create new file (fails if file exists)
● b - Binary mode (for non-text files)
● t - Text mode (default)
OPENING FILES
To work with a file, you need to open it using the open() function:
Syntax:
READING FILES
Example:
file = open("filename.txt",
"r")
content = file.read()
print(content)
file.close()
WRITING FILES
Methods:
Example:
file = open("filename.txt",
"w") file.write("Hello,
World!") file.close()
CLOSING FILES
file.close(
)
CONTEXT MANAGER
Example:
content = file.read()
print(content)
FILE METHODS
Method :
● seek() - Move file pointer
● tell() - Get current file pointer
● flush() - Flush file buffer
● truncate() - Truncate file to specified size
ADVANTAGES OF PYTHON
EASE OF USE
1. Simple syntax
2. Readable code
3. Forgiving nature (e.g., no need for semicolons)
4. Easy to learn for beginners
FLEXIBILITY
CROSS-PLATFORM COMPATIBILITY
LARGE COMMUNITY
WEB DEVELOPMENT
AUTOMATION
EDUCATION
The intership at Routes technologies and construction has let me gain the knowledge of
Python Programming language and also get to know about real time applications of python in various
sectors. The following things have been learned during internship,
self.name = name
self.species = species
def make_sound(self):
print("Generic animal sound")
class Dog(Animal):
def make_sound(self):
print("Woof!")
class Cat(Animal):
def make_sound(self):
print("Meow!")
# Data types
animals = ["dog", "cat", "elephant"] # List
ages = (3, 5, 7) # Tuple
weights = {15.5, 20.2, 45.8} # Set
is_wild = {"dog": False, "cat": False, "elephant": True} # Dictionary
Woof!
Whiskers is a
Siamese Meow!
Jumbo is a African
'list'>
Weights: <class
'dict'>
FINAL CHAPTER
The 15-day Python internship has been an enriching and enlightening experience. These past
two weeks have provided a unique and immersive opportunity to dive deep into the world of coding,
problem-solving, and software development. As reflect upon the experiences and accomplishments
First and foremost, the internship allowed to solidify and expand foundational knowledge of
Python. From understanding the basics of variables, data types, and control structures to mastering
more advanced concepts like object-oriented programming and libraries, have witnessed a
assignments, and real-world projects have stretched abilities, enabling to tackle complex coding
challenges with new found confidence. As move forward, excited to apply the lessons learned