Professional Documents
Culture Documents
Crash Course On Python: A Seminar Report On
Crash Course On Python: A Seminar Report On
Seminar Report
on
Crash Course on Python
Submitted in partial fulfillment for the award of degree of
BACHELOR OF TECHNOLOGY
In
Computer Science & Engineering
Submitted to:
Dr. S. S. Shekhawat
Head of Dept.
I
Certificate
II
Acknowledgement
I take this opportunity to express my deep sense of gratitude to my coordinator Mr. Loveleen
Kumar, Assistant Professor Department of Computer Science and Engineering, Global Institute
of Technology, Jaipur, for his valuable guidance and cooperation throughout the Practical
Training work. He provided constant encouragement and unceasing enthusiasm at every stage of
the Practical Training work.
We are grateful to our respected Dr. I. C. Sharma, Principal GIT for guiding us during
Practical Training period
We express our indebtedness to Dr. S. S. Shekhawat, Head of Department of Computer Science
and Engineering, Global Institute of Technology, Jaipur for providing me ample support during
my Practical Training period.
Without their support and timely guidance, the completion of our Practical Training would have
seemed a farfetched dream. In this respect we find ourselves lucky to have mentors of such a
great potential.
III
Abstract
This course is designed to teach you the foundations in order to write simple programs in Python
using the most common structures. No previous exposure to programming is needed. By the end
of this course, you'll understand the benefits of programming in IT roles; be able to write simple
programs using Python; figure out how the building blocks of programming fit together; and
combine all of this knowledge to solve a complex programming problem.
We'll start off by diving into the basics of writing a computer program. Along the way, you’ll
get hands-on experience with programming concepts through interactive exercises and real-
world examples. You’ll quickly start to see how computers can perform a multitude of tasks —
you just have to write code that tells them what to do.
IV
Table of Contents
Certificate........................................................................................................................................ii
Acknowledgement..........................................................................................................................iii
Abstract...........................................................................................................................................iv
Table of Content..............................................................................................................................v
Week 1.......................................................................................................................................1
1.1INTRODUCTIOANDOBJECTIVE………………………………………………………………………
…….1
1.2 Introduction to Programming ……………………………………………..2
1.3 introduction of python…………………………………………………………….2
1.4helloworld……………………………………………………………………………2
Week 2………………………………………………………………………………….
2.1ExpressionsandVariables………………………………………………………………
…….2
2.2Function………………………………………………………………………………
…………3
2.3
conditionals………………………………………………………………………………………
……………3
Week3……………………………………………………………………………………………
………………………….3
Week4……………………………………………………………………………………………….4
V
4.1 Strings………………………………………………………………………………….4
4.2 Lists……………………………………………………………………………………4
4.3 Dictionaries………………………………………………………………………….4
Week5………………………………………………………………………………………..4
5.1 Object-oriented Programming………………………………………………………4
5.2 Classes and Methods………………………………………………………………5
VI
really fun and really exciting. I coding as in life, if we're going to get philosophical, the most
rewarding work is usually a bit challenging, but ultimately well worth the effort.
If you've ever learned a new skill, like playing a musical instrument, speaking a foreign
language, knitting, or skateboarding. You know that getting good at something new requires a lot
of practice. For me, I love to learn new languages and I'm proud to say I speak Spanish, Arabic,
French, and I even know ten words in Russian. Our world is shaped by the words and the
languages we speak and while some words may be unique to one language you can always find
similarities that help you learn and understand. Being able to connect the dots between cultures
allows me to see things others might not, kind of sounds like this applies to IT
programming,huh? My point is, whether you're learning French or Python, it 's never easy. You
have to start small, learn the basics and practice those until you master them.
Only then can you move on to more complex and impressive stuff and I'm here to help
you along that path along with my colleagues who you'll meet in later courses. We'll start slow,
master the foundation's together and you'll soon be ready for more challenging stuff. So are you
wondering why we filmed this course in a cabin on a lake in Canada. The truth is were actually
in a game room at one of the Google offices in Sunnyvale, California. We chose a different
themed office space for each course of the program just to mix things up and I think I scored
with this one. I should warn my manager that I'll be hanging out in this one well after the course
ends because it's super comfy. By the end of this course, you'll understand the benefits of
programming in IT roles. You'll be able to write simple programs using Python, figure out how
the building blocks of programming fit together, and combine all this knowledge to solve a
complex programming proble
1.2Introduction to Programming
b. What is programming?
c. What is automation?
VII
d Getting Computers to Work for You
week 2
Basic Python Syntax
2.1 Expressions and Variables
a.Basic Python Syntax introduction
b.Data Types
c.Variables
d. Expressions, Numbers, and Type Conversions
2.2 Function
a. Defining Functions
b. Returning Values
c. The Principles of Code Reuse
d. Code Style
2.3 conditionals
a. Comparing Things
b. Branching with if Statements
c. else Statements
d. elif Statements
week 3
Loops
3.1 While Loops
a. Introduction to Loops
b. What is a while loop?
c. More while Loop Examples
d. Why Initializing Variables Matters
e. Infinite Loops and How to Break Them
3.2 For loops
a. What is a for loop?
b. More for Loop Examples
c. Nested for Loops
d. Common Errors in for Loops
VIII
week 4
Strings, Lists and Dictionaries
4.1 Strings
a. Basic Structures Introduction
b. What is a string?
c. The Parts of a String
d. Creating New Strings
e. More String Methods
f. Formatting Strings
4.2 Lists
a. What is a list?
b. Modifying the Contents of a List
c. Lists and Tuples
e. List Comprehensions
4.3 Dictionaries
a. What is a dictionary?
b. Iterating over the Contents of a Dictionary
c.
week 5
Object Oriented Programming
5.1 Object-oriented Programming
a.OOP Introduction
b.What is Object-oriented programming?
c.Classes and Objects in Python
d.Defining New Classes