Professional Documents
Culture Documents
ON
“PYTHON”
AT
UNIVERSITY OF MICHIGAN
Bachelor of Technology
IN
Submitted By:
Rahul Prajapati
19ECTCS049
CANDIDATE'S DECLARATION
ACKNOWLEDGEMENT
Sincerely,
Rahul Prajapati
25 January 2022
COMPLETION CERTIFICATE
COMPLETION CERTIFICATE
Abstract
COURSE DETAILS
PURPOSE OF TRANNING
CONTENTS
CANDIDATE’S DECLARATION
ACKNOWLEDGEMENT
CERTIFICATE
ABSTRACT
COURSE DETAIL
PURPOSE OF COURSE
CONTEN
1.INTRODUCTION
2.WHY WE PROGRAM
2.1 Wrighting Paragraphs of Code
4. CONDITIONAL CODE
4.1 Conditional Statements
4.2 More Conditional Statements
5. FUNCTIONS
5.1 Using Functions
5.2 Building Functions
1. INTRODUCTION
History of Python
The programming language Python was conceived in the late 1980s, and its
implementation was started in December 1989 by GUIDO VAN
ROSSUM at CWI in the NETHERLANDS as a successor to ABC capable
of exception handling and interfacing with the AMOEBA OPERATING
SYSTEM. Van Rossum is Python's principal author, and his continuing central
role in deciding the direction of Python is reflected in the title given to him by
the Python community, Benevolent Dictator for Life (BDFL).
2. WHY WE PROGRAM
Python variables are created by assigning the value of desired type to them.
Like in the above statements a numeric value is assigned to 'users' making it a
numeric variable and a string is assigned to 'user_name' making it a string
variable.
It performs one or more operations with one or more operators, variables and
literals.
The type of operators and operands in the expression determines the type of
expression. There are different types of expressions in Python like : arithmetic
expressions, string expressions, relational expressions, logical
expressions and compound expressions.
4. CONDITIONAL CODE
sequential code that simply runs one line of code after another to
conditional code where some steps are skipped. It is a very simple
concept - but it is how computer software makes "choices".
5. FUNCTIONS
We will learn about what functions are and how we can use them. The
programs in the first chapters of the book are not large enough to
require us to develop functions, but as the book moves into more and
more complex programs, functions will be an essential way for us to
make sense of our code.
Using Functions :
This is the store and reuse pattern, and the basic essence of the
store and reuse pattern is that we, as programmers, do not like
repeating ourselves.
So, if you have like four lines of code, and you want to do the same
thing later, and you put it down here.
Then you've got to find all the places, and, let's just say you put it
100 places in your program. You've got to find all 100 places and fix
the mistake. And that's exactly what store and reuse is.
BUILDING FUNCTIONS
DEFINITE LOOP
TESTING
5.1. INTRODUCTION
Testing is a process used to help identify the correctness, completenessand
quality of developed computer software. With that in mind, testing can never
completely establish the correctness of computer software. There are many
approaches to software testing from using tools to automated testing, but
effective testing of complex products is essentially a process of investigation, not
merely a matter of creating and following rote procedure.
One definition of testing is "the process of questioning a product in order to
evaluate it", where the "questions" are things the tester tries to do with the
product, and the product answers with its behaviour in reaction to the probing
of the tester. Although most of the intellectual processes of testing are nearly
identical to that of review or inspection, the word testing is connoted to mean the
dynamic analysis of the product putting the product through itspaces.
The quality of the application can and normally does vary widely from system to
system but some of the common quality attributes include reliability, stability,
portability, maintainability and usability. Refer to the ISO standard ISO 9126
for a more complete list of attributes and criteria.
1. Testing is a process of executing a program with the intent of finding
an error.
2. A good test case is one that has a high probability of finding an as yet
undiscovered error.
3. A successful test is one that uncovers an as yet undiscovered error.
Testing should systematically uncover different classes of errors in a minimum
amount of time and with a minimum amount of effort. A secondary benefit of
testing is that it demonstrates that the software appears to be working as stated
in the specifications. The data collected through testing can also provide an
indication of the software's reliability and quality. But, testing cannot show the
absence of defect -- it can only show that software defects are present.
6. WORK DONE/OBSERVATION