Introduction to Python - PowerPoint PPT Presentation

1 / 10
About This Presentation
Title:

Introduction to Python

Description:

Introduction to Python Learning to Program Computer Science Mathematics Engineering Science Craft Problem Solving What is Python? It s a third generation language ... – PowerPoint PPT presentation

Number of Views:793
Avg rating:3.0/5.0
Slides: 11
Provided by: Mr155
Category:

less

Transcript and Presenter's Notes

Title: Introduction to Python


1
Introduction to Python
  • Learning to Program

2
Computer Science
  • Mathematics
  • Engineering
  • Science
  • Craft
  • Problem Solving

3
What is Python?
  • Its a third generation language
  • Its an interpreted language

?
Third Generation
?
Second Generation
?
First Generation
?
Hardware
4
What is IDLE?
  • A rather basic text editor
  • An IDE
  • Integrated
  • Development
  • Environment
  • New to LHS

Not installed by default
5
Our first program
  • gtgtgt print(Hello World!)
  • Interactive Mode gtgtgt
  • Script Mode

6
What is a program then?
  • Sequence of instructions
  • Input
  • Process
  • Math
  • Branches (Conditional execution)
  • Loops (Repetition)
  • Output

THATS ALL FOLKS
7
Whoops!
  • Programming involves making lots of mistakes.
    These are called bugs.
  • There are three types
  • Syntax errors
  • Runtime errors
  • Semantic errors

8
Programming and Debugging are the same thing!
  • Only superheroes can write more than a few lines
    of code without making a mistake.
  • SO
  • We write a tiny program, fix it, write a tiny
    bit more, fix that,
  • .. and so on .
  • .. forever

9
Our second program
  • Using the IDLE editor
  • Guess what!
  • Print Hello World!
  • Now save it and run it.

10
Homework
  • Read through the first chapter of the book
  • Install Python on your home computer .
  • Complete Exercise 1.2
Write a Comment
User Comments (0)
About PowerShow.com