0% found this document useful (0 votes)
21 views38 pages

Internship H 6

The document is an internship report by Matta Pavani, submitted for the Bachelor of Technology in Computer Science Engineering at Aditya Institute of Technology and Management, detailing her experience at CCC Digital India Private Limited. It covers the learning objectives, activities undertaken, and topics learned during the internship, primarily focused on Python programming. The report includes acknowledgments, an abstract, and a structured index of contents.

Uploaded by

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

Internship H 6

The document is an internship report by Matta Pavani, submitted for the Bachelor of Technology in Computer Science Engineering at Aditya Institute of Technology and Management, detailing her experience at CCC Digital India Private Limited. It covers the learning objectives, activities undertaken, and topics learned during the internship, primarily focused on Python programming. The report includes acknowledgments, an abstract, and a structured index of contents.

Uploaded by

fairyp2519
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

INTERNSHIP REPORT

A report submitted in partial fulfillment of the requirements for the Award of


Degree of

BACHELOR OF TECHNOLOGY

IN

COMPUTER SCIENCE ENGINEERING

By

MATTA PAVANI

Regd. No.: 17A51A05H6

Under Supervision of

Sri. Naveen Panchangam (Chief Learning Officer),

CCC Digital India Private Limited, Hyderabad.

(Duration: 27th April 2020 to 25th May 2020)

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING


ADITYA INSTITUTE OF TECHNOLOGY AND MANAGEMENT
(An Autonomous Institution)
Approved by AICTE, Permanently affiliated to JNTU, Kakinada
TEKKALI, ANDHRA PRADESH

2020 – 2021

i
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

ADITYA INSTITUTE OF TECHNOLOGY AND MANAGEMENT

(An Autonomous Institution)

TEKKALI

CERTIFICATE
This is to certify that the “Internship report” submitted by MATTA PAVANI (Regd.
No.:17A51A05H6) is work done by her and submitted during 2020–2021 academic year, in
partial fulfillment of the requirements for the award of the degree of BACHELOR OF
TECHNOLOGY in COMPUTER SCIENCE AND ENGINEERING, at CCC Digital India
Private Limited, Hyderabad.

College Internship Coordinator Department Internship Coordinator


Dr. B. Rajesh Sri. L. V. Satyanarayana, M.Tech.
Assistant Professor, CSE

Dr. U D Prasan, M.Tech., Ph.D


Head of the Department
Department of CSE

ii
iii
ACKNOWLEDGEMENT

First I would like to thank Mr. Naveen Panchangam, Chief Learning Officer of the
CCC Digital India Private Limited, Hyderabad for giving me the instruction throughout
the course.

It is indeed with a great sense of pleasure and immense sense of gratitude that I
acknowledge the help of these individuals.

I am highly indebted to Director Prof. V. V. Nageswara Rao and Principal Dr. K.


A. Satya Srinivasa Rao for the facilities provided to accomplish this internship.

I would like to thank my Head of the Department Dr. U D Prasan for his constructive
criticism throughout my internship.

I would like to thank Dr. B. Rajesh, College internship coordinator Sri. L. V.


Satyanarayana internship coordinator Department of CSE for their support and advices to
get and complete internship in above said organization.

I am extremely great full to my department staff members and friends who helped me
in successful completion of this internship.

MATTA PAVANI
(17A51A05H6)

iv
ABSTRACT
This Course introduces the Python programming language. Python is a general-
purpose programming language that can be used to learn programming concepts. Learned
Python and greatly benefit from performing hands-on exercises. Write the lines of code by
following the instructor and the provided handouts. The instructor will help with their
questions and problems. The instructor used a Windows machine to cover the topics. The
instructor taught the installation of the needed software for the course. The topics include,
among other things, displaying messages, working with variables, using operators, creating
loops, and working with functions.

Organization Information:

CCC Digital was formed by a group of industry professionals with rich experience
from fortune 500 companies. We at CCC Digital solve our clients toughest challenges by
providing services in strategy, consulting, digital technology and operations. We do
partnership with global partners to improve the way the world works with expertise across
various industries and all business domains. We deliver transformation outcomes. Keeping
intact quality, integrity, expertise and service excellence at our core, our team of highly
motivated and experienced ERP, HR and IT consultants work tirelessly with our customers in
providing swift solutions with higher levels of ethics and accuracy. With our extensive
research and passion, all of our founders & co-founders were leveraging our real time varied
experiences to accelerate the learning path / fix skill gaps of students & employees aligning
to real-time corporate needs.

v
Learning Objectives/Internship Objectives

➢ Internships are generally thought of to be reserved for college students looking to gain
experience in a particular field. However, a wide array of people can benefit from
Training Internships in order to receive real world experience and develop their skills.
➢ An objective for this position should emphasize the skills you already possess in the
area and your interest in learning more
➢ Internships are utilized in a number of different career fields, including architecture,
engineering, healthcare, economics, advertising and many more.
➢ Some internships are used to allow individuals to perform scientific research while
others are specifically designed to allow people to gain first-hand experience working.
➢ Utilizing internships is a great way to build your resume and develop skills that can be
emphasized in your resume for future jobs. When you are applying for a Training
Internship, make sure to highlight any special skills or talents that can make you stand
apart from the rest of the applicants so that you have an improved chance of landing
the position.

vi
INDEX
S.no CONTENTS Page no
1 Introduction 1
2 Installing Python 4
3 Writing a program 6
4 Taking screenshots using Spinning Tool 8
5 Variables 11
6 Operators 12
7 Control Statements 15
8 Functions 21
9 Loops 22
10 Coding 24
11 Conclusion 28
12 Bibliography 29

vii
WEEKLY OVERVIEW OF INTERNSHIP ACTIVITIES

NAME OF THE TOPIC/MODULE


DATE DAY
COMPLETED

27/04/2020 Monday Welcome to Dr.Chuck

28/04/2020 Tuesday Welcome to Class


1st WEEK

29/04/2020 Wednesday Welcome to Python-Gudio van Rossum

30/04/2020 Thursday Welcome to Python3

Why Program?
01/05/2020 Friday
Hardware Overview

02/05/2020 Saturday Python as a language

NAME OF THE TOPIC/MODULE


DATE DAY
COMPLETED

04/05/2020 Monday Installing Python

05/05/2020 Tuesday Writing a program


2nd WEEK

06/05/2020 Wednesday Taking screenshots using Spinning tool

07/05/2020 Thursday Writing paragraphs of code

08/05/2020 Friday Demonstration of Hello world

09/05/2020 Saturday Variables

viii
NAME OF THE TOPIC/MODULE
DATE DAY
COMPLETED

11/05/2020 Monday Data types

12/05/2020 Tuesday Working assignments


3rd WEEK

13/05/2020 Wednesday Conditional Statements

14/05/2020 Thursday Working problems

15/05/2020 Friday Functions

16/05/2020 Saturday Building functions

NAME OF THE TOPIC/MODULE


DATE DAY
COMPLETED

18/05/2020 Monday Working problems

19/05/2020 Tuesday Loops and Iteration


4th WEEK

20/05/2020 Wednesday Definite loop

21/05/2020 Thursday Find the largest value

22/05/2020 Friday Loop idioms

23/05/2020 Saturday Working problems

25/05/2020 Monday Working problems

ix
1. INTRODUCTION

Python is an interpreted high-level general-purpose programming language. Python's


design philosophy emphasizes code readability with its notable use of significant indentation.
Its language constructs as well as its object-oriented approach aim to help programmers write
clear, logical code for small and large scale projects. Python is dynamically-
typed and garbage-collected. It supports multiple programming paradigms, including,
structured (particularly, procedural), object-oriented and functional programming. Python is
often described as a "batteries included" language due to its comprehensive standard library.
Guido van Rossum began working on Python in the late 1980s, as a successor to the ABC
programming language, and first released it in 1991 as Python 0.9.0. Python 2.0 was released
in 2000 and introduced new features, such as list comprehensions and a garbage collection
system using reference counting. Python 3.0 was released in 2008 and was a major revision
of the language that is not completely backward-compatible and much Python 2 code does
not run unmodified on Python 3. Python 2 was discontinued with version 2.7.18 in 2020.
Python consistently ranks as one of the most popular programming languages.

1.1 Features in Python

There are many features in Python, some of which are discussed below –

1. Easy to use:

Python is a high-level programming language. Python is very easy to learn the


language as compared to other languages like C, C#, Javascript, Java, etc. It is very easy to
code in python language and anybody can learn python basics in a few hours or days. It is
also a developer-friendly language.

2. Free and open course:

Python language is freely available at the official website and you can download it
from the internet. Since it is open-source, this means that source code is also available to
the public. So you can download it as, use it as well as share it.

3. Object-Oriented Language:

One of the key features of python is Object-Oriented programming. Python supports


object-oriented language and concepts of classes, objects encapsulation, etc.

1
4. GUI Programming Support:

Graphical User interfaces can be made using a module such as PyQt5, PyQt4,
wxPython, or Tk in python.

PyQt5 is the most popular option for creating graphical apps with Python.

5. High-Level Language:

Python is a high-level language. When we write programs in python, we do not need


to remember the system architecture, nor do we need to manage the memory.

6. Extensible feature:

Python is a Extensible language. We can write us some Python code into C or C++
language and also we can compile that code in C/C++ language.

7. Python is Portable language:

Python language is also a portable language. For example, if we have python code
for windows and if we want to run this code on other platforms such as Linux, Unix, and
Mac then we do not need to change it, we can run this code on any platform.

8. Python is Integrated language:

Python is also an Integrated language because we can easily integrated python with
other languages like c, c++, etc.

9. Interpreted Language:

Python is an Interpreted Language because Python code is executed line by line at a


time. like other languages C, C++, Java, etc. there is no need to compile python code this
makes it easier to debug our code. The source code of python is converted into an
immediate form called bytecode.

10. Large Standard Library:

Python has a large standard library which provides a rich set of module and
functions so you do not have to write your own code for every single thing. There are many
libraries present in python for such as regular expressions, unit-testing, web browsers, etc.

2
11. Dynamically Typed Language:

Python is a dynamically-typed language. That means the type (for example- int,
double, long, etc.) for a variable is decided at run time not in advance because of this
feature we don’t need to specify the type of variable.

3
2. INSTALLING PYTHON

How to Install Python IDE

Step 1) To download and install Python, visit the official website of


Python https://www.python.org/downloads/ and choose your version. We have chosen
Python version 3.6.3

Step 2) Once the download is completed, run the .exe file to install Python. Now click on
Install Now.

4
Step 3) You can see Python installing at this point.

Step 4) When it finishes, you can see a screen that says the Setup was successful. Now click
on "Close".

5
3. WRITING A PROGRAM
Creating a simple program that displays some text is often the first thing any
programmer does after setting up their environment for the first time. This only takes a few
seconds, and it can confirm to the programmer that the environment is set up and working.
"Hello world" seems to be the most common thing to say when writing these programs. I'm
going to stick with that tradition here, but feel free to write anything you like!

Anyway, you can create a simple "hello world" program by using


Python's print() function to output the text "Hello World" to the screen. We already did
this previously, but this time we'll save the program so we can run it later.

3.1 Writing a program


Open your Python editor (IDLE is fine), and enter the following code:

print("Hello World")

This will output the following:

Hello World

This is probably the simplest Python program you'll ever create, nevertheless it's still
a Python program. As with any computer program, you can save this to a file, then add to
more functionality later if needed.

6
3.2 Save your Program
Go ahead and save your program to a file called hello.py. This is typically done using the
editor's File > Save or similar.

• When you save your Python programs, use a .py file extension. This is the extension
that Python files use.
• Files with a .py extension can be opened and edited with a text editor, but they require
a Python interpreter to run.
• If you use a code editor configured for use with Python, it will see that this is a
Python file and use the appropriate syntax highlighting, debugging, etc.

3.3 Run your Program


Here's how to run the program:

1. Open your file (if not already open). This is typically done using File > Open or
similar.
2. Run the file. How to do this will depend on your editor and platform.
• In IDLE, try Run > Run Module (shortcut F5).

7
4. TAKING SCREENSHOTS USING SPINNING TOOL
Snipping Tool:

The Snipping tool is one of the default applications of Microsoft Windows. It allows
you to sketch out some portion or entire image of your HP computer screen.

Perform the following steps to capture and save screenshot using the snipping tool:

Step 1) Launching snipping tool

1. Press the start button and type snipping tool


2. Click on the Snipping Tool app

8
Step 2) The following screen will be displayed

Click on "New" to take a screenshot.

Step 3) Select the area you need to grab screen.

The selected area will be displayed in the snipping tool as follows:

9
Step 4) Saving screenshot.

You can save captured screenshots by pressing Ctrl + S.

It can also be done by performing the following steps:

1. Click on the "File" menu


2. Click on "Save As"

Step 5) Choose the location to save the screenshot

1. Choose a location to save the screenshot


2. Click on "Save" button

10
5. PYTHON VARIABLES

Python is not “statically typed”. We do not need to declare variables before using
them or declare their type. A variable is created the moment we first assign a value to it. A
variable is a name given to a memory location. It is the basic unit of storage in a program.

• The value stored in a variable can be changed during program execution.


• A variable is only a name given to a memory location, all the operations done on the
variable effects that memory location.

Rules for creating variables in Python:


• A variable name must start with a letter or the underscore character.
• A variable name cannot start with a number.
• A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9,
and _ ).
• Variable names are case-sensitive (name, Name and NAME are three different
variables).
• The reserved words(keywords) cannot be used naming the variable.

11
6. PYTHON OPERATORS

Operators in general are used to perform operations on values and variables in Python.
These are standard symbols used for the purpose of logical and arithmetic operations. In this
article, we will look into different types of Python operators.

6.1 Arithmetic operators:


Arithmetic operators are used to perform mathematical operations like addition,
subtraction, multiplication and division.
Operator Description Syntax
+ Addition: adds two operands x+y
- Subtraction: subtracts two operands x-y
* Multiplication: multiplies two operands x*y
/ Division (float): divides the first operand by the second x/y
// Division (floor): divides the first operand by the second x // y
% Modulus: returns the remainder when first operand is divided by the
x%y
second
** Power : Returns first raised to power second x ** y

6.2 Relational operators:


Relational operators compares the values. It either returns True or False according
to the condition.

Operator Description Syntax

> Greater than: True if left operand is greater than the right x>y
< Less than: True if left operand is less than the right x<y
== Equal to: True if both operands are equal x == y
!= Not equal to - True if operands are not equal x != y
Greater than or equal to: True if left operand is greater than or equal
>= x >= y
to the right

Less than or equal to: True if left operand is less than or equal to the
<= x <= y
right
> Greater than: True if left operand is greater than the right x>y

12
6.3 Logical operators:

Logical operators perform Logical AND, Logical OR and Logical NOT operations.

Operator Description Syntax


And Logical AND: True if both the operands are true x and y
Or Logical OR: True if either of the operands is true x or y
Not Logical NOT: True if operand is false not x

6.4 Bitwise operators:

Bitwise operators acts on bits and performs bit by bit operation.

Operator Description Syntax


& Bitwise AND x&y
| Bitwise OR x|y
~ Bitwise NOT ~x
^ Bitwise XOR x^y
>> Bitwise right shift x>>
<< Bitwise left shift x<<

6.5 Special operators:

There are some special type of operators like-

6.5.1 Identity operators-

is and is not are the identity operators both are used to check if two values are
located on the same part of the memory. Two variables that are equal does not imply that
they are identical.

Operator Description
Is True if the operands are identical

is not True if the operands are not identical

13
6.5.2 Membership operators-

in and not in are the membership operators; used to test whether a value or variable
is in a sequence.

Operator Description
In True if value is found in the sequence

not in rue if value is not found in the sequence

14
7. CONTROL STATEMENTS

7.1 if statement:

if statement is the most simple decision making statement. It is used to decide


whether a certain statement or block of statements will be executed or not i.e if a certain
condition is true then a block of statement is executed otherwise not.

Syntax:

if condition:

# Statements to execute if

# condition is true

Here, condition after evaluation will be either true or false. if statement accepts
boolean values – if the value is true then it will execute the block of statements below it
otherwise not. We can use condition with bracket ‘(‘ ‘)’ also.

As we know, python uses indentation to identify a block. So the block under an if


statement will be identified as shown in the below example:

if condition:

statement1

statement2

# Here if the condition is true, if block

# will consider only statement1 to be inside

# its block.

15
Flowchart:-

Output:

I am Not in if

As the condition present in the if statement is false. So, the block below the if statement is
not executed.

7.2 if- else statement:

The if statement alone tells us that if a condition is true it will execute a block of
statements and if the condition is false it won’t. But what if we want to do something else if
the condition is false. Here comes the else statement. We can use the else statement
with if statement to execute a block of code when the condition is false.

Syntax:

if (condition):

16
# Executes this block if

# condition is true

else:

# Executes this block if

# condition is false

Flowchart:-

7.3 nested-if statement:

A nested if is an if statement that is the target of another if statement. Nested if


statements means an if statement inside another if statement. Yes, Python allows us to nest
if statements within if statements. i.e, we can place an if statement inside another if
statement.

Syntax:

if (condition1):

17
# Executes when condition1 is true

if (condition2):

# Executes when condition2 is true

# if Block is end here

# if Block is end here

Flowchart:-

7.4 if-elif-else ladder:

Here, a user can decide among multiple options. The if statements are executed from
the top down. As soon as one of the conditions controlling the if is true, the statement

18
associated with that if is executed, and the rest of the ladder is bypassed. If none of the
conditions is true, then the final else statement will be executed.

Syntax:-

if (condition):

statement

elif (condition):

statement

else:

statement

Flow chart:-

19
7.5 Short Hand if statement:

Whenever there is only a single statement to be executed inside the if block then
shorthand if can be used. The statement can be put on the same line as the if statement.
Syntax:

if condition: statement

7.6 Short Hand if-else statement:

This can be used to write the if-else statements in a single line where there is only
one statement to be executed in both if and else block.

Syntax:

statement_when_True if condition else statement_when_False

20
8. FUNCTIONS
A function is a block of organized, reusable code that is used to perform a single,
related action. Functions provide better modularity for your application and a high degree of
code reusing.

As you already know, Python gives you many built-in functions like print(), etc. but
you can also create your own functions. These functions are called user-defined functions.

8.1 Defining a Function:


You can define functions to provide the required functionality. Here are simple rules
to define a function in Python.Function blocks begin with the keyword def followed by the
function name and parentheses ( ( ) ). Any input parameters or arguments should be placed
within these parentheses. You can also define parameters inside these parentheses.The first
statement of a function can be an optional statement - the documentation string of the
function or docstring.The code block within every function starts with a colon (:) and is
indented.The statement return [expression] exits a function, optionally passing back an
expression to the caller. A return statement with no arguments is the same as return None.

Syntax:
def functionname( parameters ):

"function_docstring"

function_suite

return [expression]

By default, parameters have a positional behavior and you need to inform them in the same
order that they were defined.

8.2 Calling a Function:

Defining a function gives it a name, specifies the parameters that are to be included
in the function and structures the blocks of code.

Once the basic structure of a function is finalized, you can execute it by calling it
from another function or directly from the Python prompt.

21
9. LOOPS

Python programming language provides following types of loops to handle looping


requirements. While all the ways provide similar basic functionality, they differ in their syntax
and condition checking time.

9.1 While Loop:

In python, while loop is used to execute a block of statements repeatedly until a given
a condition is satisfied. And when the condition becomes false, the line immediately after the
loop in program is executed.

Syntax :

while expression:
statement(s)
All the statements indented by the same number of character spaces after a
programming construct are considered to be part of a single block of code. Python uses
indentation as its method of grouping statements.

9.2 For Loop:

For loops are used for sequential traversal. For example: traversing a list or string or
array etc. In Python, there is no C style for loop, i.e., for (i=0; i<n; i++). There is “for in”
loop which is similar to for each loop in other languages. Let us learn how to use for in loop
for sequential traversals.

Syntax:

for iterator_var in sequence:

statements(s)

It can be used to iterate over a range and iterators.

Iterating by index of sequences:

We can also use the index of elements in the sequence to iterate. The key idea is to
first calculate the length of the list and in iterate over the sequence within the range of this
length.

22
Using else statement with for loops:

We can also combine else statement with for loop like in while loop. But as there is
no condition in for loop based on which the execution will terminate so the else block will
be executed immediately after for block finishes execution.

9.3 Loop Control Statements:

Loop control statements change execution from its normal sequence. When
execution leaves a scope, all automatic objects that were created in that scope are
destroyed. Python supports the following control statements.

• Continue Statement: It returns the control to the beginning of the loop.


• Break Statement: It brings control out of the loop
• Pass Statement: We use pass statement to write empty loops. Pass is also used for
empty control statement, function and classes.

23
10. CODING

10.1 Assigning and Printing Variables


# An integer assignment
age = 45
# A floating point
salary = 1456.8
# A string
name = "John"
print(age)
print(salary)
print(name)
output:

10.2 if Statement:
# python program to illustrate if statement
i = 10
if (i > 15):
print ("10 is less than 15")
print ("I am Not in if")
output:

24
10.3 if else statement:
# python program to illustrate if else statement
i = 20;
if (i < 15):
print ("i is smaller than 15")
print ("i'm in if Block")
else:
print ("i is greater than 15")
print ("i'm in else Block")
print ("i'm not in if and not in else Block")

output:

10.4 nested If Statement:


# python program to illustrate nested If statement
#!/usr/bin/python
i = 10
if (i == 10):
# First if statement
if (i < 15):
print ("i is smaller than 15")
# Nested - if statement
# Will only be executed if statement above
# it is true
if (i < 12):
print ("i is smaller than 12 too")
25
else:
print ("i is greater than 15")

output:

10.5 if-elif-else ladder:


# Python program to illustrate if-elif-else ladder
i = 20
if (i == 10):
print ("i is 10")
elif (i == 15):
print ("i is 15")
elif (i == 20):
print ("i is 20")
else:
print ("i is not present")

output:

10.6 While loop:


count = 0
while (count == 0): print("Hello Geek")

26
output:

10.7 Function loop:


#python program on functions
def greet(name, msg):
"""This function greets to
the person with the provided message"""
print("Hello", name + ', ' + msg)

greet("Monica", "Good morning!")


output:

27
11. CONCLUSION
In this course, I learned about installation of python,what is python, features of
python,Basics of python,Operators, Control statements,Functions,Loops. We had a hands on
assessment for every topic and Quiz also. Learned all these with good examples by the
instructor. He explained very well. This is totally 7 weeks course.

28
12. BIBLIOGRAPHY

Weblink:

https://www.python.org

https://www.javatpoint.com/python-tutorial

https://www.tutorialspoint.com/python/index.htm

https://www.geeksforgeeks.org/python-programming-language

29

You might also like