You are on page 1of 16

INTRODUCTION TO

PYTHON
BY
AMITOJ SINGH KALRA
(00713202817)
WHAT IS PYHTON ?
• Python is a high-level, interpreted, interactive and object-oriented scripting
language.
• Python is a programming language that lets you work quickly and integrate
systems more efficiently.
• It was mainly developed for emphasis on code readability, and its syntax
allows programmers to express concepts in fewer lines of code.
HISTORY OF PYTHON
•Python was developed by Guido van Rossum in
the late eighties and early nineties at the National
Research Institute for Mathematics and
Computer Science in the Netherlands.
•Python is derived from many other languages,
including ABC, Modula-3, C, C++, Algol-68,
SmallTalk, and Unix shell and other scripting
languages.
FEATURES OF PYTHON
• Easy-to-learn − Python has few keywords, simple structure, and a clearly defined syntax.
This allows the student to pick up the language quickly.
• Easy-to-read − Python code is more clearly defined and visible to the eyes.
• Easy-to-maintain − Python's source code is fairly easy-to-maintain.
• A broad standard library − Python's bulk of the library is very portable and cross-
platform compatible on UNIX, Windows, and Macintosh.
• Interactive Mode − Python has support for an interactive mode which allows interactive
testing and debugging of snippets of code.
• Portable − Python can run on a wide variety of hardware platforms and has the same
interface on all platforms.
• Extendable − You can add low-level modules to the Python interpreter. These modules
enable programmers to add to or customize their tools to be more efficient.
OOPS
• Object Oriented programming is a programming style that is associated with
the concept of Class, Objects and various other concepts revolving around
these two, like Inheritance, Polymorphism, Abstraction, Encapsulation etc.
TRAINING CONTENT
1. Introduction to Python
• Learn how to install Python, distinguish between important data types and use basic features of the
Python interpreter, IDLE.
2. Using Variables in Python
• Learn about numeric, string, sequence and dictionary data types and relevant operations while
practicing Python syntax.
3. Basics of Programming in Python
• Learn how to write programs using conditionals, loops, iterators and generators, functions and
modules and packages.
4. Principles of Object-oriented Programming (OOP)
• Learn about the important features of Object-oriented Programming while using Classes and Objects,
two main aspects of the OOP paradigm.
TRAINING CONTENT

5. Connecting to SQLite Database  


• Learn about relational databases while learning how to store and retrieve data from an SQLite
database through Python.
6. Developing a GUI with PyQT
• Learn how to install PyQt5 toolkit, Qt Designer and create a graphical user interface using common
widgets and menu systems.
7. Application of Python in Various Disciplines
• Learn about various resources to extend your learning for the Python programming language.
PROFILE OF THE PROBLEM
Create a Fantasy Cricket game in Python. The game should have all the features displayed in the mock-up screens in the scenario. To calculate the points for
each player, we can use rules similar to the sample rules displayed below.
Rules:
• Batting
● 1 point for 2 runs scored
● Additional 5 points for half century
● Additional 10 points for century
● 2 points for strike rate (runs/balls faced) of 80-100
● Additional 4 points for strike rate>100
● 1 point for hitting a boundary (four) and 2 points for over boundary (six)
• Bowling
● 10 points for each wicket
● Additional 5 points for three wickets per innings
● Additional 10 points for 5 wickets or more in innings
● 4 points for economy rate (runs given per over) between 3.5 and 4.5
● 7 points for economy rate between 2 and 3.5
● 10 points for economy rate less than 2
• Fielding
● 10 points each for catch/stumping/run out
TESTING/DEVELOPING
OPENING SCREEN OF THE APPLICATION. YOU CAN SEE THE PLAYERS OF EACH CATEGORY BY SELECTING
THE CATEGORY. TO BEGIN WITH, THE SELECTION IS DISABLED UNTIL A NEW TEAM IS CREATED FROM THE
MANAGE TEAMS MENU. A POP UP ASKING THE NAME OF THE TEAM APPEARS.
THE TOOLBAR MENU OPTIONS WHICH ALLOW YOU TO CREATE A NEW TEAM, OPEN AN EXISTING
TEAM, SAVE YOUR TEAM AND FINALLY EVALUATE THE SCORE OF A SAVED TEAM.

After clicking New Team, the left box is populated with player names. As you select a different category,
the corresponding list of players is displayed.
ON DOUBLE-CLICKING EACH PLAYER NAME, THE RIGHT BOX GETS POPULATED. POINTS AVAILABLE AND USED ARE
DISPLAYED ACCORDINGLY.
YOU CANNOT SELECT MORE THAN 5 PLAYERS IN THE CATEGORY OF BATSMEN , BOWLER , NOT
MORE THAN 3 ALLROUNDER AND NOT MORE THAN 1 WICKET KEEPER FOR A TEAM . TOTAL 11
PLAYERS ARE ALLOWED IN A TEAM OTHERWISE IT WILL NOT SAVE THE TEAM .
NOW YOU CAN EVALUATE THE TEAM BY CLICKING ON THE OPTION OF MANAGE TEAM ON TOP LEFT
CORNER AND AFTER THAT YOU CAN CALCULATE THE SCORE OF A TEAM FOR PARTICULAR MATCH
CONCLUSION
• Python is a language that is remarkably easy to learn, and it can be used as a stepping stone into other
programming languages and frameworks. If you’re an absolute beginner and this is your first time
working with any type of coding language, that’s something you definitely want.
• Python is widely used, including by a number of big companies like Google, Pinterest, Instagram,
Disney, Yahoo!, Nokia, IBM, and many others. 
•  Most automation, data mining, and big data platforms rely on Python. This is because it is the ideal
language to work with for general purpose tasks.
• Python allows for a more productive coding environment than massive languages like C# and Java. 
THANK YOU

You might also like