Você está na página 1de 17

REPORT CONTENT

 Introduction of Industry
 History of Python
 Why Python?
 Characteristics of Python
 Data Structures in Python
 File Handling in Python
 Conclusion
Introduction of Industry
Coursera is an American online learning platform founded by Stanford
professors Andrew Ng and Daphne koller that offers massive open online
courses (MOOC), specializations, and degrees.

Mission

Coursera works with universities and other organizations to offer online


courses, specializations, and degrees in a variety of subjects, such
as engineering, humanities, medicine, biology, social
sciences, mathematics, business, computer science, digital
marketing, data science, and others.

Vision
Our vision is to create a platform, where trainees/students are able to
learn different features of technologies to secure a better position in IT
industry or to improve their careers.
TRAINING PROGRAM SCHEDULE

DATE WEEK PROGRAM

14-07-2019 Week 1 Why we program?

21-07-2019 Week 2 Variables & expressions

28-07-2019 Week 3 Conditional code

04-08-2019 Week 4 Functions

11-08-2019 Week 5 Loops and Iteration

18-08-2019 Week 6 File and Lists

25-08-2019 Week 7 Dictionaries

01-09-2019 Week 8 Got Certificate


History of Python
Python was developed in 1980 by Guido van Rossum at the National
Research Institute for Mathematics and Computer Science in the
Netherlands as a successor of ABC language capable of exception
handling and interfacing. Python features a dynamic type system and
automatic memory management. It supports multiple programming
paradigms, including object-oriented, imperative, functional and
procedural, and has a large and comprehensive standard library.
Van Rossum picked the name Python for the new language from a TV
show, Monty Python's Flying Circus.
In December 1989 the creator developed the 1st python interpreter as a
hobby and then on 16 October 2000, Python 2.0 was released with many
new features.

...In December 1989, I was looking for a "hobby" programming project


that would keep me occupied during the week around Christmas. My
office ... would be closed, but I had a home computer, and not much else
on my hands. I decided to write an interpreter for the new scripting
language I had been thinking about lately: a descendant of ABC that
would appeal to Unix/C hackers. I chose Python as a working title for
the project, being in a slightly irreverent mood (and a big fan of Monty
Python's Flying Circus)
Python Releases

 Python 1.0 - January 1994


 Python 1.5 - December 31, 1997
 Python 1.6 - September 5, 2000
 Python 2.0 - October 16, 2000
 Python 2.1 - April 17, 2001
 Python 2.2 - December 21, 2001
 Python 2.3 - July 29, 2003
 Python 2.4 - November 30, 2004
 Python 2.5 - September 19, 2006
 Python 2.6 - October 1, 2008
 Python 2.7 - July 3, 2010
 Python 3.0 - December 3, 2008
 Python 3.1 - June 27, 2009
 Python 3.2 - February 20, 2011
 Python 3.3 - September 29, 2012
 Python 3.4 - March 16, 2014
 Python 3.5 - September 13, 2015
 Python 3.6 - December 23, 2016
 Python 3.7 - June 27, 2018
Why Python?
The language's core philosophy is summarized in the document The Zen of Python
(PEP 20), which includes aphorisms such as…

 Beautiful is better than ugly


 Simple is better than complex
 Complex is better than complicated
 Readability counts
 Explicit is better than implicit
Characteristics of Python

Interpreted Language: Python is processed at runtime by Python Interpreter

compile
output source code execut
Hello.java

byte code
Hello.c
lass

• Easy to read: Python source-code is clearly defined and visible to the eyes.

• Portable: Python codes can be run on a wide variety of hardware platforms


having the same interface.

• Extendable: Users can add low level-modules to Python interpreter.

• Scalable: Python provides an improved structure for supporting large


programs than shell-scripts.

• Object-Oriented Language: It supports object-oriented features and


techniques of programming.
• Interactive Programming Language: Users can interact with the python
interpreter directly for writing programs.

• Easy language: Python is easy to learn language especially for beginners.


• Straight forward Syntax: The formation of python syntax is simple and
straightforward which also makes it popular.

Data Structures in Python


LISTS-
• Ordered collection of data.
• Supports similar slicing and indexing functionalities as in the case of Strings.
• They are mutable.
• Advantage of a list over a conventional array
• Lists have no size or type constraints(no setting restrictions
beforehand).
• They can contain different object types.
• We can delete elements from a list by using Del list_name[index_val]
• Example-
• my_list = ['one', 'two','three',4,5]
• len(my_list) would output 5.

Dictionary-
• Lists are sequences but the dictionaries are mappings.
• They are mappings between a unique key and a value pair.
• These mappings may not retain order.
• Constructing a dictionary.
• Accessing object from a dictionary.
• Nesting Dictionaries.
• Basic Dictionary Methods.
• Basic Syntax o d={} empty dictionary will be generated and assign keys and
values to it, like d[‘animal’] = ‘Dog’
o d = {'K1':'V1', 'K2’:’V2'}
o d['K1'] outputs 'V1‘
Tuples-
• Immutable in nature, i.e. they cannot be changed.
• No type restriction
• Indexing and slicing, everything's same like that in strings and lists.
• Constructing tuples.
• Basic tuple methods.
• Immutability.
• When to use tuples?
• We can use tuples to present things that shouldn’t change, such as days of
the week, or dates on a calendar, etc.

Sets-
• A set contains unique and unordered elements and we can construct them by
using a set() function.
• Convert a list into Set-
• l=[1,2,3,4,1,1,2,3,6,7]
• k = set(l)
• k becomes {1,2,3,4,6,7}
• Basic Syntax-
• x=set()
• x.add(1) x = {1}
• x.add(1)
• This would make no change in x now

File Handling in Python-


Python too supports file handling and allows users to handle files i.e., to read and
write files, along with many other file handling options, to operate on files. The
concept of file handling has stretched over various other languages, but the
implementation is either complicated or lengthy, but alike other concepts of
Python, this concept here is also easy and short. Python treats file differently as
text or binary and this is important. Each line of code includes a sequence of
characters and they form text file. Each line of a file is terminated with a special
character, called the EOL or End of Line characters like comma {,} or newline
character. It ends the current line and tells the interpreter a new one has begun.
Let’s start with Reading and Writing files.

We use open () function in Python to open a file in read or write mode. As


explained above, open ( ) will return a file object. To return a file object we use
open () function along with two arguments, that accepts file name and the mode,
whether to read or write. So, the syntax being: open (filename, mode). There are
three kinds of mode, that Python provides and how files can be opened:

• “ r “, for reading.
• “ w “, for writing.
• “ a “, for appending.
• “ r+ “, for both reading and writing

Ex-It is a notepad file (101.txt)

Code in python
It read the words from 101.txt file and print the all words which are present in the
file and also tell that word occurring how many times.
DESCRIPTION OF PROJECT

Simple cafe Billing System is a python-based project. I developed using


Python. The main modules available in this project are Payment module
which manages the functionality of payment, Price module which show
the prices of item, Customers has his own order number and Bills module
manages the functionality of Bills.

As we know Python projects, are trending topics for academic python


project development, so I choose python3 for developing this project. In
this project I developed features for Payment, Price, Customer order
number etc, which reduces the human efforts and increase the efficiency.

MODULE OF SIMPLE CAFÉ BILLING SYSTEM

 Payment module: it contains all the functionalities related to the


payment.
 Price module: it contains the prices of item.
 Customer module: it contains customer order number.
 Bills module: it contains all the required functions which include
adding, viewing, deleting, updating bills.

SOFTWARE REQUIRED

 Python3: To run this project you need python3


Conclusion-

I believe the trial has shown conclusively that it is both possible and
desirable to use Python as the principal teaching language:

• It is Free (as in both cost and source code).


• It is trivial to install on a Windows PC allowing students to take
their interest further. For many the hurdle of installing a Pascal or
C compiler on a Windows machine is either too expensive or too
complicated;
• It is a flexible tool that allows both the teaching of traditional
procedural programming and modern OOP.
• It can be used to teach a large number of transferable skills.
• It is a real-world programming language that can be and is used in
academia and the commercial world.
• It appears to be quicker to learn and, in combination with its many
libraries, this offers the possibility of more rapid student
development allowing the course to be made more challenging and
varied.
• and most importantly, its clean syntax offers increased
understanding and enjoyment for students.

The training program having destination was a lot more useful than
staying at one place throughout the whole 7 weeks. In my opinion. I
have gained lots of knowledge and experience needed to be successful in
great engineering challenge as in my opinion, Engineering is after all a
Challenge, and not a job.
REFERENCES –

 www.coursera.org
 www.python.org
 www.codementor.io
 www.learnpython.org
 www.codecademy.com

Você também pode gostar