100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
concepts of python $8.99   Add to cart

Presentation

concepts of python

 4 views  0 purchase
  • Course
  • Institution

explanations about the concepts in python programming

Preview 4 out of 41  pages

  • April 25, 2024
  • 41
  • 2023/2024
  • Presentation
  • Unknown
avatar-seller
SCSA1211- Python Programming




SCHOOL OF COMPUTING

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING




UNIT-I Python Programming – SCSA1211




1

,SCSA1211- Python Programming




INTRODUCTION
History of Python- Introduction to the IDLE interpreter (shell) -Expressions – Data Types -
Built-in function - Conditional statements - Iterative statements- Input/output -Compound Data
Types - Nested compound statements




1. Program

A program performs a task in the computer. But, in order to be executed,
a program must be written in the machine language of the processor of a
computer. Unfortunately, it is extremely difficult for humans to read or write a
machine language program. This is because a machine language is entirely
made up of sequences of bits. However, high level languages are close to
natural languages like English and only use familiar mathematical characters,
operators and expressions. Hence, people prefer to write programs in high level
languages like C, C++, Java, or Python. A high level program is translated into
machine language by translators like compiler or interpreter.

a. About Python

Python is a high level programming language that is translated by the
python interpreter. As is known,an interpreter works by translating line-by-
line and executing. It was developed by Guido-van-rossum in 1990, at the
National Research Institute for Mathematics and Computer Science in
Netherlands. Python doesn’t refer to the snake but was named after the famous
British comedy troupe, Monty Python’s Flying Circus.

The following are some of the features of Python:


2

,SCSA1211- Python Programming



 Python is an Open Source: It is freely downloadable, from the link http://
python.org/”
 Python is portable: It runs on different operating systems / platforms3
 Python has automatic memory management
 Python is flexible with both procedural oriented and object oriented
programming
 Python is easy to learn, read and maintain

It is very flexible with the console program, Graphical User Interface (GUI)
applications, Web related programs etc.

POINTS TO REMEMBERWHILE WRITING A PYTHON PROGRAM

 Case sensitive : Example - In case of print statement use only
lower case and not upper case, (See the snippet below)




Fig1. Print Statement

 Punctuation is not required at end of the statement
 In case ofstring use single or double quotes i.e. ‘ ’ or “ ”
 Must use proper indentation:The screen shotsgiven below show, how
the value of “i” behaves with indentation and without indentation.



3

, SCSA1211- Python Programming




Fig 2 indentation

 Special characters like (,),# etc.are used

 () ->Used in opening and closing parameters of functions

 #-> The Pound sign is used to comment a line



1.2 TWO MODES OF PYTHON PROGRAM

Python Program can be executed in two different modes:
 Interactive mode programming
 Script mode programming
4

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller rpjpraveen77. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $8.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

78600 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$8.99
  • (0)
  Add to cart