21 Bcs 068

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 24

INTERNSHIP REPORT

An internship report submitted in partial fulfilment of the requirements for the course
“Summer Internship-I ” of degree

Bachelor of Technology
(Comp
uter Science Engineering)
(As a part of 3 Semester
Course)

by

Ragav
Gupta
21bcs068

SCHOOL OF COMPUTER SCIENCE


ENGINEERING
FACULTY OF ENGINEERING
SHRI MATA VAISHNO DEVI UNIVERSITY
KATRA-182320 (J&K), INDIA
2021
DECLARATION

I, Ragav Gupta, Registration Number- 21bcs068 hereby declare that the work which is
being presented in internship report by me in partial fulfilment of the of the requirements
for the course “Summer Internship-I in Semester-III, 2021-22 of degree Bachelor of
Technology in Computer science Engineering from the School of Computer science
Engineering, Faculty of Engineering, Shri Mata Vaishno Devi University, Katra is a
bonafide record of my own work. The content presented in this study has not been
submitted in any other university/instltute for the award of any other degree.

Date: Ragav
Gupta
21bcs068

2
INTERNSHIP CERTIFICATE

3
ACKNOWLEDGEMENT

It is my proud privilege and duty to acknowledge the kind of help and guidance received
from several people in preparation of this report. First and foremost, I wish to record our
sincere gratitude to Great learning Coordinators support and encouragement in preparation of
this report and for making available videos and interface facilities needed to prepare this
report. The seminar on “python” was very helpful to us in giving the necessary background
information and inspiration in choosing this topic for the seminar. Last but not the least ,
we wish to thank our parents for financing our studies in this college as well as for
constantly encouraging us to learn engineering

Ragav
Gupta
2lbcs06

4
CONTENTS
i.Title

2.Deceleration

3. Certificate

4.Abstract
5.Internship objective

6.introduction of organisation

7.introduction to python

8.data type

9.variables

10 examples

11.form

12 . bibliography

5
ABSTRACT

This report discusses the internship program done by me at Great learning in programming
in
Python .It states the concept of Python programming.

It shows a brief background about the place of training .It mentions some facts about the
department that was responsible for the training program . This report describes the
history, characteristics, overview and concept of Python programming.

Python , an interpreted language which was developed by GUIDO VAN ROSSUM, came
into implementation in 1989 The language supports both object oriented and procedure
oriented approaches. Python is designed to be a highly extensible language .Python is very

6
9
INTRODUCTION TO PYTHON

WHATIS PYTHON?
Python is an interpreted, object-oriented, high-level programming language
with dynamic semantics. Its high-level built in data structures, combined
with dynamic typing and dynamic binding, make it very attractive for Rapid
Application Development, as well as for use as a scripting or glue language
to connect existing components together.

Python's simple, easy to learn syntax emphasizes readability and therefore


reduces the cost of program maintenance.

Python supports modules and packages, which encourages program


modularity and code reuse.

The Python interpreter and the extensive standard library are available in
source or binary form without charge for all major platforms, and can be
freely distributed.

10
WHY PYTHON?

PYTHON ADVANTAGES OVER OTHER LANGUAGES

* EASY TO USE AND WRITE :

python is very easy to read and write

PYTHON CODE- print(“name”)

C PROGRAMMING CODE -

• No need to declare variable type.


• SHOW RUN TIME ERROR
• PYTHON IS A CASE SENSITIVE LANGUAGE
• Interpreted language: Python is an interpreted language i.e
interpreter executes the code line by line at a time.
• Cross-platform language: Python can run equally on different
platforms such as windows,Iinux,unix. so, we can say that Python
is an portable language.
• .Object oriented language: Python supports object oriented
language and concepts of classes and objects come into existence.

Data types in python

11
• numeric data type
• dictionary :. Lists are sequences but the dictionaries are mappings.

Basic dictionary methods, nesting dictionary.

• boolean
• set : A set contains unique and unordered elements and we can
construct them by using a set() function.
• list : Ordered collection of data

List contains different object types.

• Tuple : Immutable in nature.

12
No type restriction .

• string

a="niti" #this is string data type we can use " or ""

or"' d="' "niti"

b=90 # this data type is integer

c=98.998 # this data type is floating point value

e=True # this data type is boolean , use to have only 2


value example true or false

f=None #none data type represent nothing

tuple
#creating a tuple using

t=("niti","hello",4, False)

Sprinting the elements of a tuple

print(t[3])

#cannot update a

tuple t[5]=34

string

assfgc xo.0,f,2,3.....

13
List
4 create a list using []

# #list is a container that store set of values of any data type

#number 0,1,2... is assign from starting , so that we


any one value of list

with different data types

dictionary
#dictionary simply values for a particular

variable ' "syntex

mydict {

key : value

14
SETS
#set is a collection of non repetative items

a=(1,2,3,4,65,7}

print(a)

print(type(a))

b={1,2,3,1}

print(b) # will print as dublicate iteams are not allowed


in sets

Operators: Arithmetic

operators assignment

operators
comparison operators

logical operators
a=3

b=5

#avî tfunce t:î opez-a t:ars

print("the value of 3+5

is",a+b) print("the value of 3-

5 is",a-b) print("the value of

3*5 is",a*b) print("the value

of 3/5 is",a/b)

c=4

d=6

a+=

7 b-

=5

16
c/=2

d*=6

17
print(a) print(b) print(c) print(d)

f=(14>7)

print(f)

bool1=True

bool2=False

print(”value of booll and bool2 is",(booll and bool2)) print("value


of booll and bool2 is",(booll or bool2)) print("value of bool2 is”,
(not bool2))

some programe:

country= {

18
"1 " USA",

" Africa",
"2
"

"91" : "india",

"62" : "Indonesia",

"964": "Iraq",

"972"
Israel",

"39": "
Italy",
Japan”,
81

Kazakhstan",

"355": "Albania",

"54" : "Argentina",

"61": "Australia",

"43": "Austria",

"32" : "Belgium",

"55" : "Brazil",

” 86 ” : "China" ,

" 57" : "Colombia",

"53” : "Cuba " ,

" 45 ” : "Denmark " ,

"20" : "Egypt",

" 33 ” : "France" ,

"49” : "Germany" ,

" 30 " : "G=eece " ,

" 36” : " Hungary" ,

19
"7" "russia"

20
print (" select country code form")

print(country.keys())

n=(input())

print(country[n])

Registration form using Python Tkinter

from tkinter import *

from tkinter import

ttk window = Tk()

window.title(”Welcome to TutorialsPoint")

window.geometry('400x400')

window.configure(background = "grey”);

a = Label(window ,text = "First Name").grid(row = O,column = 0)

b = Label(window ,text = ”Last Name”).grid(row = 1,column = 0)

c = Label(window ,text = "Email Id").grid(row = 2,column = 0)

d = Label(window ,text = "Contact Number”).grid(row = 3,column = 0)

a1 = Entry(window).grid(row = O,column = 1)

b1 = Entry(window).grid(row = 1,column = 1)

c1 = Entry(window).grid(row = 2,column = 1)

d1 = Entry(window).grid(row = 3,column = 1)

def clicked():

21
res = "Welcome to ” + txt.get()

lbl.configure(text= res)

btn ttk.Button(window ,text="Submit").grid(row=4,column=0)

window.mainloop()

22
BIBLIOGRAPHY
BOOKS:- Automate the boring stuff with Python by AI sweigart

Learn to programming with Python 3 by Irv kalb

Functional Python Programming by Steven lot

https://www.w3schoo1s.com/python/default.asp

23

You might also like