Programming Internship Documentation
Programming Internship Documentation
INTERNSHIP
(On-Site/Virtual)
ANDHRA PRADESH
STATE COUNCIL OF HIGHER
EDUCATION
(A STATUTORY BODY OF GOVERNMENT OF ANDHRA PRADESH)
PROGRAM BOOK FOR
LONG-TERMINTERNSHIP
(Onsite/Virtual)
21FE1A0531
2024-2025
An Internship Report on
BACHELOR OF TECHNOLOGY
in
Submitted by
Institute of Technology & Science, do here by declare that I have completed the
Computer Science and Engineering, Vignan’s Lara Institute of Technology & Science.
External Examiner
4
Certificate from Intern Organization
4
5
fhfh
6
Acknowledgements
The satisfaction that accompanies the successful completion of any task would be
incomplete without the mention of people whose ceaseless cooperation made it
possible, whose constant guidance and encouragement crown all efforts with
success.
We thank Dr. K. VENKATESWARA RAO, M. Tech., Ph. D., Professor & HoD,
Department of Computer Science and Engineering for support and valuable
suggestions.
We express our sincere thanks to our beloved Chairman Dr. LAVU RATHAIAH
for providing support and stimulating the environment for developing the
internship.
We also place our floral gratitude to all other teaching and lab technicians for their
constant support and advice throughout the Internship.
7
CONTENTS
1 Student Declaration
2 Certificate from Intern Organization
3 Acknowledgments
4 Overview of the Organization
5 Programming Essentials in Python
8
OVERVIEW OF THE ORGANIZATION
Vision:
Cisco Systems, Inc. envisions a digitally connected world where people, devices,
applications, and data seamlessly interact to drive innovation, productivity, and
sustainable growth. As a global leader in networking solutions, Cisco is committed to
empowering individuals, businesses, and communities to thrive in this interconnected
landscape. The company's vision encompasses a future where connectivity is
ubiquitous, reliable, and secure, fostering collaboration, creativity, and prosperity
across all sectors of
society.
9
CHAPTER: PROGRAMMING ESSENTIALS IN PYTHON
Python is a computer programming language often used to build websites and
software, automate tasks, and analyze data. Python is a general-purpose language, not
specialized for any specific problems, and used to create various programmes. This
versatility and its beginner-friendliness have made it one of the most used
programming languages today. In 2020, more than one-third of Indian IT
professionals said Python was their preferred programming language. It continues to
top lists of the most desired programming languages in the country.
Python has become one of the most popular programming languages in recent
years. It's been used in everything from machine learning to building websites and
software testing. Developers and non- developers alike find it useful.
10
ACTIVITY LOG FOR THE FIRST WEEK
Day Person
In-
Brief description of the daily Learning Outcome
& Charge
Day – 3 Elements of
Programming Language
programming language
Advantages and
Day – 4 disadvantages of both
Compilation vs. Interpretation
compilation and
interpretation
11
WEEKLY REPORT
WEEK – 1 (From Dt ………..….. to Dt.................)
Detailed Report:
Python is a widely-used, interpreted, object-oriented, and high-level programming
language with dynamic semantics, used for general-purpose programming. And while
you may know the python as a large snake, the name of the Python programming
language comes from an old BBC television comedy sketch series called Monty
Python's Flying Circus.
What makes a language: Each language consists of the elements like alphabet,
lexis, syntax and semantics.
There is more than one python: There are two main kinds of Python, called
Python 2 and Python 3. Python 2 is an older version of the original Python. Its
development has since been intentionally stalled, although that doesn't mean that
there are no updates to it. Python 3 is the newer (to be precise, the current)
version of the language. It's going through its own evolution path, creating its
12
own standards and habits.
13
ACTIVITY LOG FOR THE SECOND WEEK
Learnt about
Day – Variables and Data Types
variables and various
3
data types
Learnt about
Day - 4 Variables and Data Types
variables and various
data types
How to perform
Day – Operators and operations different
5 operations using
operators
How to perform
Arithmetic Operators and different
Day–6
operations operations using
arithmetic
operators
14
WEEKLY REPORT
WEEK – 2 (From Dt………..….. to Dt.................)
Detailed Report:
Python variables are like containers used to store data of various data types. Data
types are the classification or categorization of data items. It represents the kind of
value that tells what operations can be performed on a particular data. Since
everything is an object in Python programming, Python data types are classes and
variables are instances (objects) of these classes.
Print() function: The print() function prints the specified message to the
screen, or other standard output device. The message can be a string, or any
other object, the object will be converted into a string before written to the
screen.
Literals: Literals are notations for representing some fixed values in code.
Python has various types of literals - for example, a literal can be a number
(numeric literals, e.g., 123), or a string (string literals, e.g., "I am a literal.").
Data Type: Python Data Types are used to define the type of a variable. It
defines what type of data we are going to store in a variable. The following
are the standard or built-in data types in Python: Numeric (Integer, Complex
Number, Float), Sequence Type (Strings, List, Tuple), Boolean, Set,
Dictionary.
Python Operators: Operators are used to perform operations on variables
and values.
Python Arithmetic Operators: + (addition), - (subtraction), *
(multiplication), / (classic division ‒ always returns a float), % (modulus ‒
divides left operand by right operand and returns the remainder of the
operation, e.g., 5 % 2 = 1),
15
ACTIVITY LOG FOR THE THIRD WEEK
Day Person
In-
& Brief description of the daily Learning Outcome Charge
Activity
Date Signature
Making decisions in
Day - 2 Simple if, if-else Statements Python
16
WEEKLY REPORT
WEEK – 3 (From Dt………..….. to Dt.....................)
Detailed Report:
17
ACTIVITY LOG FOR THE FOURTH WEEK
Person
Day In-
& Brief description of the Learning Outcome Charge
daily
Date Activity Signature
18
WEEKLY REPORT
WEEK – 4 (From Dt………..….. to Dt......)
Detailed Report:
List: The list is a type of data in Python used to store multiple objects. It is an
ordered and mutable collection of comma-separated items between square
brackets.
Lists can be indexed and updated.
Lists can be nested.
List elements and lists can be deleted.
The len() function may be used to check the list's length.
Python supports the following logical operators:
and → if both operands are true, the condition is true, e.g., (True and True) is
True,
or → if any of the operands are true, the condition is true, e.g., (True or False) is
True,
not → returns false if the result is true, and returns true if the result is false, e.g.,
not True is False.
Bitwise operators to manipulate single bits of data. The following sample
data: & does a bitwise and, e.g., x & y = 0, which is 0000 0000 in binary,
| does a bitwise or, e.g., x | y = 31, which is 0001 1111 in binary,
˜ does a bitwise not, e.g., ˜ x = 240*, which is 1111 0000 in binary,
^ does a bitwise xor, e.g., x ^ y = 31, which is 0001 1111 in binary,
>> does a bitwise right shift, e.g., y >> 1 = 8, which is 0000 1000 in binary,
<< does a bitwise left shift, e.g., y << 3 = , which is 1000 0000 in binary.
19
ACTIVITY LOG FOR THE FIFTH WEEK
20
WEEKLY REPORT
WEEK – 5 (From Dt.....................to Dt...................)
Functions
Parameterized Function
Types of Functions
Recursion
Tuple – Introduction, Declaration
Uses of Tuples, Operations, Methods
Detailed Report:
A function is a block of code that performs a specific task when the function is
called (invoked). You can use functions to make your code reusable, better
organized, and more readable. Functions can have parameters and return values.
There are at least four basic types of functions in Python
built-in functions which are an integral part of Python (such as the print() function).
You can see a complete list of Python built-in functions
at https://docs.python.org/3/library/functions.html the ones that come from pre-
installed modules (you'll learn about them in the Python Essentials 2 course).
User-defined functions which are written by users for users - you can write your
own functions and use them freely in your code,
Tuples are ordered and unchangeable (immutable) collections of data. They can be
thought of as immutable lists. They are written in round brackets.
Python Tuple is a collection of Python Programming objects much like a list. The
sequence of values stored in a tuple can be of any type, and they are indexed by
integers. Values of a tuple are syntactically separated by ‘commas‘. Although it is
not necessary, it is more common to define a tuple by closing the sequence of values
in parentheses. This helps in understanding the Python tuples more easily.
21
ACTIVITY LOG FOR THE SIXTH WEEK
Day Person
In-
Learning Outcome
& Brief description of the daily Charge
Date Activity Signature
Learnt exception
Day–6 Exception handling
handling
22
WEEKLY REPORT
WEEK – 6 (From Dt………..….. to Dt...................)
Detailed Report:
Dictionaries are unordered, changeable (mutable), and indexed collections of data.
(In Python 3.6x dictionaries have become ordered by default.
Each dictionary is a set of key: value pairs.
If you want to access a dictionary item, you can do so by making a reference to its
key inside a pair of square brackets or by using the get() method.
If you want to change the value associated with a specific key, you can do so by
referring to the item's key name.
You can use the for loop to loop through a dictionary.
If you want to loop through a dictionary's keys and values, you can use
the items() method.
To check if a given key exists in a dictionary, you can use the in keyword.
You can use the del keyword to remove a specific item, or delete a dictionary. To
remove all the dictionary's items, you need to use the clear() method.
To copy a dictionary, use the copy() method.
In Python, there is a distinction between two kinds of errors:
Syntax errors (parsing errors), which occur when the parser comes across a
statement that is incorrect
Exceptions, which occur even when a statement/expression is syntactically correct;
these are the errors that are detected during execution when your code results in an
error which is not unconditionally fatal.
23
ACTIVITY LOG FOR THE SEVENTH WEEK
Day Person
In-
& Brief description of the daily Charge
Learning Outcome
Date Activity Signature
Learnt importing
Modules Importing
Day - 2 modules
24
WEEKLY REPORT
WEEK – 7 (From Dt………..….. to Dt...................)
Detailed Report:
If you want to import a module as a whole, you can do it using the import
module_name statement. You are allowed to import more than one module at once
using a comma-separated list.
If a module is imported in the above manner and you want to access any of its
entities, you need to prefix the entity's name using dot notation.
You are allowed not only to import a module as a whole, but to import only
individual entities from it. In this case, the imported entities must not be prefixed
when used.
You can change the name of the imported entity "on the fly" by using the as phrase of
the import.
A function named dir() can show you a list of the entities contained inside an
imported module.
The math module couples more than 50 symbols (functions and constants) that
perform mathematical operations (like sine(), pow(), factorial()). The random module
groups more than 60 entities designed to help you use pseudo-random numbers.
The platform module contains about 70 functions which let you dive into the
underlaying layers of the OS and hardware.
A package is a container which enables the coupling of several related modules under
one common name. Such a container can be distributed as-is (as a batch of files
deployed in a directory sub-tree) or it can be packed inside a zip file.
A Python file named init .py is implicitly run when a package containing it is
subject to import, and is used to initialize a package and/or its sub-packages (if any).
The file may be empty, but must not be absent.
To make use of PyPI the specialized tool has been created and its name is pip.
25
ACTIVITY LOG FOR THE EIGHTH WEEK
Day – 3
String Methods String Methods
26
WEEKLY REPORT
Detailed Report:
Introduction of Strings: A String is a data structure in Python Programming that
represents a sequence of characters. It is an immutable data type, meaning that
once you have created a string, you cannot change it. Python String are used
widely in many different applications, such as storing and manipulating text data,
representing names, addresses, and other types of data that can be represented as
text.
Computers store characters as numbers. There is more than one possible way of
encoding characters, but only some of them gained worldwide popularity and are
commonly used in IT: these are ASCII (used mainly to encode the Latin
alphabet and some of its derivates) and UNICODE (able to encode virtually all
alphabets being used by humans).
27
ACTIVITY LOG FOR THE NINTH WEEK
Day Person
In-
Learning Outcome
& Brief description of the daily Charge
Date Activity Signature
Understanding
Day – 1 Exceptions Introduction
Exceptions
Learnt exception
Day – 3 Exception handling
handling
Exception handling
Day – 5 Exception branching with exceptional
hierarchy
28
WEEKLY REPORT
WEEK – 9 (From Dt………..….. to Dt...................)
29
ACTIVITY LOG FOR THE TENTH WEEK
Reusability of the
Day - 2 Inheritance
methods and properties
Behaving differently
Day – 3 Polymorphism based on different
scenarios
Hiding unnecessary
Day – 5 Abstraction complexity from the
user
contains information
about the error,
Day–6 Exceptions as objects including its type and
the state of the program
when the error occurred
30
WEEKLY REPORT
WEEK – 10 (From Dt.....................to Dt..................)
Detailed Report:
A class is an idea (more or less abstract) which can be used to create a number of
incarnations – such an incarnation is called an object.
When a class is derived from another class, their relation is named inheritance. The
class which derives from the other class is named a subclass. The second side of this
relation is named superclass. A way to present such a relation is an inheritance
diagram, where:
Super classes are always presented above their subclasses;
relations between classes are shown as arrows directed from the subclass toward
its superclass.
Objects are equipped with:
a name which identifies them and allows us to distinguish between them;
a set of properties (the set can be empty)
a set of methods (can be empty, too).
31
ACTIVITY LOG FOR THE ELEVENTH WEEK
Day Person
In-
Learning Outcome
& Brief description of the daily Charge
Date Activity Signature
Magic methods
Day - 2 Magic methods definition
definition
Learnt attribute
Day – Attribute resolution order
resolution order
3
Learnt overriding in
Day–6 Overriding methods
classes
32
WEEKLY REPORT
A parameter less function named super () returns a reference to the nearest superclass
of the class.
Methods as well as instance and class variables defined in a superclass are automatically
inherited by their subclasses.
o all classes involved in the object's inheritance line from bottom to top;
o if there is more than one class on a particular inheritance path, Python scans
them from left to right;
33
ACTIVITY LOG FOR THE TWELTH WEEK
Introduction to the
Day – Filesystem API working with files
1 using the files module
Subprocess creation
Day – OS module
and output management
4
34
WEEKLY REPORT
WEEK – 12 (From Dt………..….. to Dt..................)
Detailed Report:
A file needs to be open before it can be processed by a program, and it
should be closed when the processing is finished.
Opening the file associates it with the stream, which is an abstract
representation of the physical data stored on the media. The way in which
the stream is processed is called open mode. Three open modes exist:
o read mode – only read operations are allowed;
o write mode – only write operations are allowed;
o update mode – both writes and reads are allowed.
Depending on the physical file content, different Python classes can be
used to process files. In general, the BufferedIOBase is able to process
any file, while TextIOBase is a specialized class dedicated to processing
text files (i.e. files containing human-visible texts divided into lines using
new-line markers). Thus, the streams can be divided into binary and text
ones.
The following open() function syntax is used to open a file:
o open(file_name, mode=open_mode, encoding=text_encoding)
The invocation creates a stream object and associates it with the file
named file_name, using the specified open_mode and setting the specified
text_encoding, or it raises an exception in the case of an error
Three predefined streams are already open when the program starts:
o sys.stdin – standard input;
o sys.stdout – standard output;
o sys.stderr – standard error output.
The IOError exception object, created when any file operations fails
(including open operations), contains a property named errno, which
contains the completion code of the failed action. Use this value to
diagnose the problem.
35