1 / 10

Introduction to Python

Introduction to Python. Learning to Program. Computer Science. Mathematics Engineering Science Craft Problem Solving. What is Python?. It’s a third generation language It’s an interpreted language. . Third Generation. . Second Generation. . First Generation. . Hardware.

karan
Download Presentation

Introduction to Python

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

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

More Related