Ch 1. A Python Q&A Session Spring 2009. Why do people use Python? Software quality Developer productivity Program portability Support libraries Component.

Slides:



Advertisements
Similar presentations
EIONET Training Beginners Zope Course Miruna Bădescu Finsiel Romania Copenhagen, 27 October 2003.
Advertisements

Programming Basic Concepts © Juhani Välimäki 2003.
Introduction To Java Objectives For Today â Introduction To Java â The Java Platform & The (JVM) Java Virtual Machine â Core Java (API) Application Programming.
MC697 Object-Oriented Programming Using Java. In this class, we will cover: How the class will be structured Difference between object-oriented programming.
Software. What Is Software? software –Also called Computer programs –Are a list of instructions –Instructions are called code –CPU performs the instructions.
Introduction to Java The objectives of this chapter are: To describe the key aspects of Java To describe the Java software development kit (SDK) To explain.
Object Orientated Programming
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 2: Operating-System Structures Modified from the text book.
Mgt 240 Lecture Website Construction: Software and Language Alternatives March 29, 2005.
1 SD1042: Introduction to Software Development SD1042 Introduction to Software Development SCHOOL OF COMPUTING AND TECHNOLOGY Getting Started MODULE TEAM.
CSE 1301 J Lecture 2 Intro to Java Programming Richard Gesick.
01 Introduction to Java Technology. 2 Contents History of Java What is Java? Java Platforms Java Virtual Machine (JVM) Java Development Kit (JDK) Benefits.
WHAT IS PHP PHP is an HTML-embedded scripting language primarily used for dynamic Web applications.
Introduction to Java Programming. Contents 1. Java, etc. 2. Java's Advantages 3. Java's Disadvantages 4. Types of Java Code 5. Java Bytecodes 6. Steps.
Lesson 4 Computer Software
1 Web Database Processing. Web Database Applications Static Report Publishing a report is prepared from a database application and exported to HTML DB.
TC2-Computer Literacy Mr. Sencer February 8, 2010.
Lecture 1 Introduction to Java MIT- AITI 2004 What is a Computer Program? For a computer to be able to do anything (multiply, play a song, run a word.
Introduction to Python Dr. Bernard Chen Ph.D. University of Central Arkansas July 9 th 2012
Ch 1. Introduction Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2012.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
M1G Introduction to Programming 2 4. Enhancing a class:Room.
Programming Languages
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
About the Java  Java technology is both a programming language and a platform –The Java Programming Language A high-level language that can be characterized.
1 TOPIC 1 INTRODUCTION TO COMPUTER SCIENCE AND PROGRAMMING Topic 1 Introduction to Computer Science and Programming Notes adapted from Introduction to.
CMSC 202 Computer Science II for Majors Object-Oriented Programming.
An intro to programming. The purpose of writing a program is to solve a problem or take advantage of an opportunity Consists of multiple steps:  Understanding.
Computer Science 111 Fundamentals of Programming I Overview of Programming.
CHAPTER FOUR COMPUTER SOFTWARE.
Chapter 2: Operating-System Structures. 2.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 14, 2005 Operating System.
Introduction to Interactive Media Interactive Media Tools: Software.
Enterprise Java Beans Java for the Enterprise Server-based platform for Enterprise Applications Designed for “medium-to-large scale business, enterprise-wide.
Software Writer:-Rashedul Hasan Editor:- Jasim Uddin.
Computer Programming 12 Mr. Jean March 19 th, 2013.
BLU-ICE and the Distributed Control System Constraints for Software Development Strategies Timothy M. McPhillips Stanford Synchrotron Radiation Laboratory.
CS 11 java track: lecture 1 Administrivia need a CS cluster account cgi-bin/sysadmin/account_request.cgi need to know UNIX
Python technology Python is a programming language that lets you work more quickly and integrate your systems more effectively. You can learn to use Python.
POS 406 Java Technology And Beginning Java Code
Programming Concept Chapter I Introduction to Java Programming.
Guide to Programming with Python Chapter One Getting Started: The Game Over Program.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
4-Nov-15 Air Force Institute of Technology Electrical and Computer Engineering Object-Oriented Programming Design Topic 1: The Java Environment Maj Joel.
Creating Your First Computer Program in Java Margaret Yau.
Getting started with Programming using IDE. JAVA JAVA IS A PROGRAMMING LANGUAGE AND A PLATFORM. IT CAN BE USED TO DELIVER AND RUN HIGHLY INTERACTIVE DYNAMIC.
 Instructor: Dr. Jason Nichols –  Office Hours: – 9:30-10:30 M/W/F or by appointment – Business Building.
JAVA Programming “When you are willing to make sacrifices for a great cause, you will never be alone.” Instructor: รัฐภูมิ เถื่อนถนอม
Computer Software Types Three layers of software Operation.
CS7 Recitation Cem Akkaya. Outline  Homework-0 in detail  Useful links and tools  Setting up your java environment.
Ch 1. A Python Q&A Session. Why do people use Python? Software Quality Developer productivity Program portability Support Libraries Component integration.
Chapter 1 Basic Concepts of Operating Systems Introduction Software A program is a sequence of instructions that enables the computer to carry.
3/5/2002e-business and Information Systems1 Java Java Java Virtual Machine (JVM) Java Application Program Interface (API) HW Kernel API Application Programs.
Computer Science A 1. Course plan Introduction to programming Basic concepts of typical programming languages. Tools: compiler, editor, integrated editor,
ITP 109 Week 2 Trina Gregory Introduction to Java.
Computer Science I Lab 1 ISMAIL ABUMUHFOUZ | CS 180.
Introduction to 1. What is Java ? Sun Microsystems Java is a programming language and computing platform first released by Sun Microsystems in The.
Lesson 2: First Java Programs. 2.1 Why Java? Java is one of the most popular programming languages in the world. Java is a modern object-oriented programming.
PHP stands for …….. “PHP Hypertext Pre-processor” and is a server-side scripting language like ASP. PHP scripts are executed on the server PHP supports.
Sung-Dong Kim, Dept. of Computer Engineering, Hansung University Java - Introduction.
Python Programming Unit -1.
CST 1101 Problem Solving Using Computers
Ch 1. A Python Q&A Session Bernard Chen 2007.
PHP / MySQL Introduction
Getting Started ARCS Lab..
What Is a Program? A program is like an algorithm, but describes a process that is ready or can be made ready to run on a real computer Retrieved from:
Chapter 7 –Implementation Issues
FEniCS = Finite Element - ni - Computational Software
FEATURES OF PYTHON.
Web Application Development Using PHP
Presentation transcript:

Ch 1. A Python Q&A Session Spring 2009

Why do people use Python? Software quality Developer productivity Program portability Support libraries Component integration

Why do people use Python? Software quality  Python is designed to be readable, and hence reusable and maintainable  The uniformity of Python code makes it easy to understand, even if you didn’t write it  Python is deep support for software reuse mechanisms such as object-oriented programming (OOP)

Why do people use Python? Developer productivity  Python code is typically 1/3 to 1/5 the size of equivalent C++ or JAVA code  Less to type, less to debug, and less to maintain  Python programs run immediately, without compile and link steps of some other tools, further boosting programmer speed

Why do people use Python? Program portability  Most python programs run unchanged on all major computer platforms  Porting Python code between Linux and Windows, we just need copy a script’s code between machines  Offer multiple options for coding portable graphical user interfaces, database access programs, web-based systems  Even for operating system interfaces, are possibly portable in Python

Why do people use Python? Support libraries  A large collection of prebuilt and portable functionality, known as stand library  Be extended with homegrown libraries and third-party application support software  Third-party domains offer tools for website construction, numeric programming, serial port access, and game development  For example, NumPy, an extension almost equivalent to Matlab numeric programming system

Why do people use Python? Component integration  Python scripts can communicate with other parts of an application by integration mechanisms  Today, Python code can invoke C and C++ libraries, can be called from C and C++, can integrate with Java components  Communicate over such as frameworks COM,.NET  Interact over networks with interfaces like SOAP, XML, CORBA

What can I do with Python? System programming  Built-in interfaces to operating system services make it ideal to write system administration tools and utilities  Python programs can search files and directory trees, launch other programs, do parallel processing GUIs  A standard object-oriented interface to the Tk GUI API, Tkinter, allowing Python programs to implement portable GUIs  Other toolkits also can be used in Python

What can I do with Python? Internet scripting  Come with standard internet modules to allow Python to perform networking tasks  A large collection of third-party tools available on the web for doing Internet programming in Python Database programming  Interfaces to all commonly used relational databases systems such as Sybase, Oracle, etc Games, images, AI, XML and more

What are Python’s Technical Strength It’s OO It’s free It’s Portable It’s Powerful It’s Easy to use It’s Easy to learn

What is the Downside of Python? Perhaps the only downside to Python is that the execution speed may not always as fast as compiled languages such as C and C++ Python is not compiled all the way down to binary machine code, it compiled to byte code instead

Who Uses Python Today? 2007, roughly 1 million users of Python around the world Google and Yahoo currently use Python in Internet service The YouTube video sharing service is largely writing in Python IBM use Python for hardware testing BitTorrent peer-to-peer file sharing system is a Python program Industrial Light and Magic use Python in the production of movie animation JPMorgan chase apply Python for financial market forcasting NASA uses Python for scientific programming tasks For more details, visit

Install Python Links of Python download  Windows installer Windows installer  Mac installer Mac installer  Python tutorial Python tutorial

Install Python 1. Click the installer

Install Python 2. Click Next

Install Python 3. Click Next

Install Python 4. Choose the installation path, click Next

Install Python 5. Click Install

Install Python 6. Click Finish, then we can open Python in Pythonwin IDE or interactive shell modes

How do you run programs? Three different methods Interactive Coding Files (such as NotePad, WordPad) Integrated Development Environment (IDE)

Hello World Program Python program

“Hello World” in C C program main() { printf("hello, World!\n"); }

“Hello World” in Java Java program class helloworld { public static void main(String args[]) { System.out.println("Hello World!"); }

Some more Python codes 6+9 print 6+9 print “6+9” a=6+9 print a a=6 b=9 a+b

Some more Python codes