Introduction to Computers and Python

Slides:



Advertisements
Similar presentations
Designing a Program & the Java Programming Language
Advertisements

Programming for Beginners
Languages for IT & CS Pseudo-code What HTML isn’t Early history Compiling & interpreting Classifying languages The process of programming.
Gerardo Schneider Department of Informatics University of Oslo December 2008.
CS 0008 Introduction to Computer Programming Jan Wiebe:
Programming Languages Structure
Introduction to Programming Programming. COMP102 Prog. Fundamentals I: Introduction / Slide 2 Objectives l To learn fundamental problem solving techniques.
Introduction to Programming. COMP104 Introduction / Slide 2 Objectives * To learn fundamental problem solving techniques * To learn how to design a program.
Introduction to Programming (in C++) Introduction Jordi Cortadella, Ricard Gavaldà, Fernando Orejas Dept. of Computer Science, UPC.
Concept of Computer Programming November 2, 2011.
CS 331, Principles of Programming Languages Introduction.
CS 0007 Introduction to Computer Programming Jan Wiebe: Office Hours: T: 3-4pm; Th 2-3pm; and by appt.
Chapter 0: Introduction CSCI-UA 0002 – Introduction to Computer Programming Mr. Joel Kemp.
Programming Languages Lecture 12. What is Programming?  The process of telling the computer what to do  Also known as coding.
1 Chapter-01 Introduction to Computers and C++ Programming.
History of Programming Languages
Introduction to Programming Language CS105 Programming Language First-generation: Machine language Second-generation: Assembly language Third-generation:
CS-0401 INTERMEDIATE PROGRAMMING USING JAVA Prof. Dr. Paulo Brasko Ferreira Fall 2014.
There are only 10 types of people in the world, those who understand binary and those who don't.
Basics Programming Concepts. Basics A computer program is a set of instructions to tell a computer what to do Machine language = circuit level language.
CSE Fundamentals of Computing Prof. Douglas Thain Fall 2011.
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.
Chapter 1. Introduction.
Introduction CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
Introduction CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
Programming History. Who was the first programmer?
 Computer Languages Computer Languages  Machine Language Machine Language  Assembly Language Assembly Language  High Level Language High Level Language.
Programming Languages
int k = Integer.MAX_VALUE; k++; int k = Integer.MAX_VALUE; k++; What happens when the following code executes? byte b = someFile.readByte(); b = (byte)(b.
Scripting Languages Info derived largely from Programming Language Pragmatics, by Michael Scott.
Invent Your Own Computer Games with Python
Programming Language Theory 2014, 1 Chapter 1 :: Introduction Origin : Michael L. Scott School of Computer & Information Engineering,
Software Engineering Algorithms, Compilers, & Lifecycle.
a medium allowing humans and computers to communicate an abstraction of the real world a notation for expressing algorithms the set of all syntactically.
First appeared Features Popular uses Basic This language emphasises on ease of use, allowing general purpose programming to those with a small amount of.
CPS120 Introduction to Computer Science High Level Language: Paradigms.
Introduction to Computer Science What is Computer Science? Getting Started Programming.
Website Source Code Free Download.
Chapter 1. Introduction.
Evolution and History of Programming Languages
Compilers Principles, Techniques, & Tools Taught by Jing Zhang
Basic Concepts: computer, program, programming …
The language focusses on ease of use
Lecture 1b- Introduction
Introduction to programming languages, Algorithms & flowcharts
Machine and Assembly Language
Basic 1960s It was designed to emphasize ease of use. Became widespread on microcomputers It is relatively simple. Will make it easier for people with.
Scripting Languages Info derived largely from Programming Language Pragmatics, by Michael Scott.
Basic 1964 PC general purpose Imperative Small Easy to use.
Introduction to programming languages, Algorithms & flowcharts
PROGRAMMING LANGUAGES
Programming Language Hierarchy, Phases of a Java Program
CSCI-235 Micro-Computer Applications
Problem Solving Using C: Orientation & Lecture 1
A451 Theory – 7 Programming 7A, B - Algorithms.
Special types Objects and operators built into the language but used only in modules: Ellipsis (also “…”): used chiefly in slices in modules like numpy.
Programming Concepts and Languages
Introduction to programming languages, Algorithms & flowcharts
Assembler, Compiler, Interpreter
CS105 Introduction to Computer Concepts Intro to programming
Assembler, Compiler, Interpreter
Introduction In today’s lesson we will look at: why Python?
and Program Development
ICT Programming Lesson 1:
Tonga Institute of Higher Education IT 141: Information Systems
Tonga Institute of Higher Education IT 141: Information Systems
Compilers Principles, Techniques, & Tools Taught by Jing Zhang
School of Computer & Information Engineering,
What is Programming Language
CS105 Introduction to Computer Concepts Intro to programming
Presentation transcript:

Introduction to Computers and Python CS 0008

Why Program Computers are tools Computers are customizable tools Multi-purpose Computers are customizable tools Customize through programming Computers are good at... tedious, repetitive tasks math handling a lot of data following instructions exactly as you give them

Some problems computers can handle Remove red-eye from a picture Find the complement of a DNA strand Display maps with airplane flight paths Multiply matrices Assess the reading level of a text book

Programming Languages Ada Assembly BASH BASIC C C++ C# D COBOL FORTRAN Go Haskell Java JavaScript LISP Mathematica MATLAB ML Objective C Pascal Perl PHP Prolog Python R Ruby Visual Basic and many others

So why Python? Popular language Often ranked among top 10 programming languages Used at many companies One of four official Google languages (the others are Java, C++, and Go) Free, well-documented, and well-supported Clean syntax

Learning to Program Programming ideas are the same from one language to another Once you learn one language, it is straightforward to learn others Python programs are shorter and simpler than other languages You can concentrate on the ideas, and learn programming concepts quicker.

Python vs. Java Java: public class HelloWorld { public static void main (String[] args) System.out.println("Hello, world!"); } Python: print("Hello, world!")

Running Python Programs Scripting, interpreted language Write code in interpreter for immediate feedback Although, can write code in text files for easy reuse Two versions of Python currently in use: Python 2 Python 3 We will use Python 3 A lot of information online about Python refers to Python 2, but there are incompatibilities between the languages

The Big Picture How will our programs run? Software Our program Python 3 interpreter Operating System Hardware The code that we wrote Converts our program into something that can be executed. It also fills in some blanks for us Provides access to the hardware and other resources. Actually executes our code It is many of those resources Stores software and data

The Big Picture