Download
introduction to python n.
Skip this Video
Loading SlideShow in 5 Seconds..
Introduction to Python PowerPoint Presentation
Download Presentation
Introduction to Python

Introduction to Python

147 Views Download Presentation
Download Presentation

Introduction to Python

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. Introduction to Python Learning to Program

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

  3. What is Python? • It’s a third generation language • It’s 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 • >>> print(“Hello World!”) • Interactive Mode >>> • Script Mode

  6. What is a program then? • Sequence of instructions • Input • Process • Math • Branches: (Conditional execution) • Loops: (Repetition) • Output THAT’S 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