Ch 1. A Python Q&A Session Bernard Chen 2007.

Slides:



Advertisements
Similar presentations
Programming Basic Concepts © Juhani Välimäki 2003.
Advertisements

1 Programming Languages Translation  Lecture Objectives:  Be able to list and explain five features of the Java programming language.  Be able to explain.
1 SD1042: Introduction to Software Development SD1042 Introduction to Software Development SCHOOL OF COMPUTING AND TECHNOLOGY Getting Started MODULE TEAM.
01 Introduction to Java Technology. 2 Contents History of Java What is Java? Java Platforms Java Virtual Machine (JVM) Java Development Kit (JDK) Benefits.
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.
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.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
1 TOPIC 1 INTRODUCTION TO COMPUTER SCIENCE AND PROGRAMMING Topic 1 Introduction to Computer Science and Programming Notes adapted from Introduction to.
COMP 110: Introduction to Programming Tyler Johnson January 14, 2009 MWF 11:00AM-12:15PM Sitterson 014.
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.
Java Lecture 16: Dolores Zage. WWW n Was a method for distributing passive information n added forms and image maps n interaction was only a new way to.
Java Virtual Machine Java Virtual Machine A Java Virtual Machine (JVM) is a set of computer software programs and data structures that use.
Python 101 Dr. Bernard Chen University of Central Arkansas IT Academic.
Computer Science 111 Fundamentals of Programming I Overview of Programming.
Introduction to Programming Peggy Batchelor.
Programming Concept Chapter I Introduction to Java Programming.
Week 1 - Friday.  What did we talk about last time?  Our first Java program.
Ch 1. A Python Q&A Session Spring Why do people use Python? Software quality Developer productivity Program portability Support libraries Component.
4-Nov-15 Air Force Institute of Technology Electrical and Computer Engineering Object-Oriented Programming Design Topic 1: The Java Environment Maj Joel.
 Instructor: Dr. Jason Nichols –  Office Hours: – 9:30-10:30 M/W/F or by appointment – Business Building.
Week 1 basic Python programs, defining functions Special thanks to Scott Shawcroft, Ryan Tucker, and Paul Beck for their work on these slides. Except where.
JAVA Programming “When you are willing to make sacrifices for a great cause, you will never be alone.” Instructor: รัฐภูมิ เถื่อนถนอม
1 TOPIC 1 INTRODUCTION TO COMPUTER SCIENCE AND PROGRAMMING Topic 1 Introduction to Computer Science and Programming Notes adapted from Introduction to.
Overview of Java CSCI 392 Day One. Running C code vs Java code C Source Code C Compiler Object File (machine code) Library Files Linker Executable File.
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.
Java FilesOops - Mistake Java lingoSyntax
CHAPTER 1 INTRODUCTION. CHAPTER GOALS To understand the activity of programming To learn about the architecture of computers To learn about machine code.
WHY ARE WE HERE? Nick Derrickson BA371, Winter 2016.
1/10/2008. >>> About Us Paul Beck * Third quarter TA * Computer Engineering * Ryan Tucker * Second quarter TA * Computer.
Client-Server applications Introduction to Java Applets Client-server architectures Why do Applets exist? What can an Applet do?
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.
Introduction to 1. What is Java ? Sun Microsystems Java is a programming language and computing platform first released by Sun Microsystems in The.
CMSC 202 Computer Science II for Majors Fall 2010 Introduction Version 9/101.
Introduction to Computer Science What is Computer Science? Getting Started Programming.
Introduction CMSC 202 Fall Instructors Mr. Ryan Bergeron – Lecture Section 01 Tues/Thu 1:00 – 2:15 am, Sondheim 111 – Lecture Section 04 Tues/Thu.
CS-140 Dick Steflik Lecture 3. Java C++ Interpreted optimized for the internet Runs on virtual ized machine Derived from C++ Good object model Widely.
CSC 241: Introduction to Computer Science I
Introduction to programming in java
CS210 Intermediate Computing with Data Structures (Java)
What Do Computers Do? A computer system is
Python Programming Unit -1.
Why don’t programmers have to program in machine code?
Top 8 Best Programming Languages To Learn
CST 1101 Problem Solving Using Computers
Interpreted languages Jakub Yaghob
Chapter 1 Introduction to Computers, Programs, and Java
Introduction to.
Text by: Lambert and Osborne
Introduction to .NET Framework Ch2 – Deitel’s Book
Lecture 1 Runtime environments.
Corpus Linguistics I ENG 617
Introduction to Java Dept. Business Computing University of Winnipeg
Understanding Assignment
Getting Started ARCS Lab..
Java Intro III.1 (Fr Feb 23).
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:
basic Python programs, defining functions
Introduction to Algorithm Design
Chapter 7 –Implementation Issues
A Java Application public class Hello { public static void main(String [] args) { System.out.println("Hello, World!"); } } public class.
(Computer fundamental Lab)
Lecture 1 Runtime environments.
FEATURES OF PYTHON.
EN Software Carpentry Python – A Crash Course Esoteric Sections Compiled Languages.
Web Application Development Using PHP
CSC 241: Introduction to Computer Science I
Presentation transcript:

Ch 1. A Python Q&A Session Bernard Chen 2007

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

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

What can I do with Python? System Programming GUIs Internet Scripting Database Programming 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? Google and Yahoo currently use Python in Internet service 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

Install Python Go to the class page and download Python2.4

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

Hello World Program Implement by three different methods

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

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

Some more Python codes 6+9 Print 6+9 Print “6+9” aa=6+9 print aa aa=6 bb=9 aa+bb