0% found this document useful (0 votes)
31 views17 pages

Wa0028

Python basics

Uploaded by

Sarmistha S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views17 pages

Wa0028

Python basics

Uploaded by

Sarmistha S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 17

CHAPTER I

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

⮚ Learn and improve proficiency in Python Programming.


⮚ Gain practical experience by working on real-world projects.
⮚ Familiarize yourself with relevant Python Programming libraries and frameworks.
⮚ Develop problem-solving skills and enhance algorithmic thinking.
⮚ Understand the software development lifecycle and best practices.
⮚ Enhance collaboration and communication skills within a team environment.

1
CHAPTER II

COMPANY PROFILE

Profile -About Industry


Established in the year 2009, Durga Tech in Erode, Erode is a top player in the category
Project Work in Erode. This well-known establishment acts as a one-stop destination servicing
customers both local and from other parts of Erode. Over the course of its journey, this business
hasestablished a firm foothold in IT’s industry.
The belief that customer satisfaction is as important as their products and services, have
helped this establishment garner a vast base of customers, which continues to grow by the day. This
business employs individuals that are dedicated towards their respective roles and put in a lot of
effort to achieve the common vision and larger goals of the company.
In the near future, this business aims to expand its line of products and services and cater
to a larger client base. In Erode, this establishment occupies a prominent location in Erode. It is an
effortless task in commuting to this establishment as there are various modes of transport
readily available. It is at Near Bus stand Erode which makes it easy for first-time visitors
in locating this establishment.
• Software Development Kit
• Website development.
• Mobile app development.
• CRM
• Inventory management
• Analytic, Reporting and Big Data solutions
• Dedicated Support Team
• Value Added Service Design & Implementation

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

INTRODUCTION TO PYTHON PROGRAMMING

Python is a dynamic, interpreted (byte code-compiled) language. There are no type is


the declarations of variables, parameters, functions, or methods in source code. This makes the
code short and flexible, and you lose the compile-time type checking of the source code

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 = Person("Alice", 30)

person1.greet()

Output:
Alice
30

INHERITANCE:

Child classes inherit properties from parent classes

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:

Objects can take multiple forms

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())

# Creating objects of both classes


my_cat = Cat()
my_dog = Dog()
my_lion = Lion()
my_elephant = Elephant()

# 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..,

OPERATORS AND EXPRESSION

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

operands Let us see some of the operators with meaning and

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:

file = open("filename.txt", "r")

READING FILES

To read from a file, use the following methods:


Method
● read() - Read entire file
● readline() - Read one line
● readlines() - Read all lines into a list

Example:

file = open("filename.txt",
"r")

content = file.read()

print(content)

file.close()
WRITING FILES

To write to a file, use the following methods:

Methods:

● write() - Write string to file


● writelines() - Write list of strings to file

Example:
file = open("filename.txt",
"w") file.write("Hello,
World!") file.close()

CLOSING FILES

It's essential to close files after use to free up system resources:


Syntax:

file.close(
)

CONTEXT MANAGER

A context manager ensures files are properly closed:

Example:

open("filename.txt", "r") as file:

content = file.read()

print(content)

FILE METHODS

Here are some additional 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

1. General-purpose programming language


2. Can be used for web development, data analysis, AI, automation, and more
3. Supports multiple programming paradigms (OOP, functional, procedural)
4. Extensive libraries and frameworks

SPEED AND EFFICIENCY

1. Fast development and execution


2. Efficient memory management
3. Supports parallel processing and concurrency
4. Just-In-Time (JIT) compilation

CROSS-PLATFORM COMPATIBILITY

1. Runs on multiple operating systems (Windows, macOS, Linux)


2. Supports various hardware platforms
3. Easy to deploy and distribute

LARGE COMMUNITY

1. Active and supportive community


2. Numerous online resources and tutorials
3. Extensive libraries and frameworks
4. Continuous development and improvement
COST-EFFECTIVE

a. Free and open-source


b. Reduces development time and costs
c. Easy to maintain and update
d. Lowers total cost of ownership

DATA ANALYSIS AND SCIENCE

1. NumPy, Pandas, and Matplotlib for data analysis


2. Scikit-learn for machine learning
3. SciPy for scientific computing
4. Jupyter Notebook for interactive data exploration

WEB DEVELOPMENT

1. Django and Flask frameworks


2. Easy to build web applications
3. Supports various databases (MySQL, PostgreSQL, MongoDB)
4. Extensive libraries for web development

AUTOMATION

1. Easy to automate tasks


2. Supports various automation frameworks (Robot, PyAutoGUI)
3. Integrates with other tools and services
4. Improves productivity

ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING

1. TensorFlow and Keras for deep learning


2. Scikit-learn for machine learning
3. OpenCV for computer vision
4. NLTK and spaCy for natural language processing

EDUCATION

1. Easy to teach and learn


2. Used in various educational institutions
3. Supports interactive learning (Jupyter Notebook)
4. Develops problem-solving skills
INTERNSHIP OUTCOME

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,

▪ Learned about the OOPs Concept, Variables, Data Types.


▪ Learned about running programs in IDLE, IDE, Sublimetext, Pycharm,
Online Text editior
▪ Gained knowledge about memory allocation.
▪ Problem solving using Python programming language.
▪ Learned about File Input/Output.
PROGRAM
class Animal:
def init (self, name, species):

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

# Create animal objects


dog = Dog("Buddy", "Golden
Retriever") cat = Cat("Whiskers",
"Siamese")
elephant = Animal("Jumbo", "African Elephant")

# Access attributes and call


methods print(dog.name, "is a",
dog.species) dog.make_sound()
print(cat.name, "is a",
cat.species) cat.make_sound()
print(elephant.name, "is a",
elephant.species) elephant.make_sound()

# Data type examples


print("Animals:",
type(animals)) print("Ages:",
type(ages)) print("Weights:",
type(weights)) print("Is wild:",
type(is_wild))
OUTPUT

Buddy is a Golden Retriever

Woof!

Whiskers is a

Siamese Meow!

Jumbo is a African

Elephant Generic animal

sound Animals: <class

'list'>

Ages: <class 'tuple'>

Weights: <class

'set'> Is wild: <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

during this program, several key takeaways come to the forefront.

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

remarkable growth in technical proficiency. The hands-on coding exercises, challenging

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

during this internship to contribute meaningfully to the ever-evolving landscape of technology.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy