Ch 1. A Python Q - PowerPoint PPT Presentation

1 / 14
About This Presentation
Title:

Ch 1. A Python Q

Description:

Ch 1. A Python Q&A Session Why do people use Python? Software Quality Developer productivity Program portability Support Libraries Component integration Why do people ... – PowerPoint PPT presentation

Number of Views:63
Avg rating:3.0/5.0
Slides: 15
Provided by: GSU50
Learn more at: http://www.cs.gsu.edu
Category:
Tags: python

less

Transcript and Presenter's Notes

Title: Ch 1. A Python Q


1
Ch 1. A Python QA Session
2
Why do people use Python?
  • Software Quality
  • Developer productivity
  • Program portability
  • Support Libraries
  • Component integration

3
Why do people use Python?
  • Software Quality
  • Python is designed to be readable, and hence
    maintainable.
  • Python adopts minimalist approach.
  • Python is deep support for software reuse
    mechanisms such as OO.
  • Developer productivity
  • Python code is typically 1/3 to 1/5 the size of
    equivalent C or JAVA code

4
Why do people use Python?
  • Program portability
  • Most python programs run unchanged on all major
    computer platforms
  • Support Libraries
  • Component integration
  • Today, Python code can invoke C and C
    libraries, can be called from C and C, can
    integrate with Java components. Can communicate
    over XML, Corba and .NET etc

5
What can I do with Python?
  • System Programming (shell tools)
  • GUIs (standard OOP interface Tkinter)
  • Internet Scripting
  • Database Programming (pickle module provides
    object persistence system interfaces to MySQL,
    ODBC, etc. portable DB API for SQL)
  • Numeric Programming (NumPy extension)
  • Games, Images, AI, XML and more

6
What are Pythons Technical Strength
  • Its OO
  • Its free
  • Its Portable
  • Its Powerful (dynamic typing, automatic memory
    management, OOP)
  • Its Mixable
  • Its Easy to use (executable pseudo code)
  • Its Easy to learn

7
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.

8
Who Uses Python Today?
  • Google and Yahoo currently use Python in Internet
    services
  • Hewlett-Packard, Seagate and IBM use Python for
    hardware testing
  • Industrial Light and Magic use Python in the
    production of movie animation
  • For more details, visit www.python.org

9
Install Python
  • Download python from http//www.python.org/downloa
    d/

10
How do you run programs?
  • Three different methods
  • 1. Interactive Coding
  • 2. Files (such as NotePad, WordPad)
  • 3. Integrated Development Environment (IDE)

11
Hello World Program
  • Implement by three different methods

12
Hello World in C
  • main()
  • printf("hello, world\n")

13
Hello World in JAVA
  • class myfirstjavaprog
  • public static void main(String args)
  • System.out.println("Hello World!")

14
Python codes
  • Print Hello World!
  • More Code??
  • Print 69
  • Print 69
  • aa69
  • print aa
  • aa6 bb9
  • aabb
Write a Comment
User Comments (0)
About PowerShow.com