1 / 9

Introduction to Computer Science - Python

Introduction to Computer Science - Python. CSc 2010 Spring 2011 Marco Valero. Overview. What is Computer Science Programming Languages Python. What is Computer Science?. “Computer science is no more about computers than astronomy is about telescopes” – Edsger W. Dijkstra.

lihua
Download Presentation

Introduction to Computer Science - 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 Computer Science - Python CSc2010 Spring 2011 Marco Valero

  2. Overview • What is Computer Science • Programming Languages • Python

  3. What is Computer Science? “Computer science is no more about computers than astronomy is about telescopes” – Edsger W. Dijkstra

  4. Computer Science • Study of information and computation • What does it mean to be computable • How can we describe computation • Algorithms • How can we describe algorithms • Languages

  5. Algorithms • Finite set of unambiguous instructions performed in a sequence to achieve a goal • makeCoffee: • Place filter in coffee machine • Scoop 4 teaspoons of coffee into filter • Take coffee pot and fill with 4 cups water • Fill coffee machine with water from pot • Place pot under percolator • Turn on

  6. makeCoffee pt 2 • makeCoffee(n): • Place filter in coffee machine • Scoop n teaspoons of coffee into filter • Take coffee pot and fill with n cups water • Fill coffee machine with water from pot • Place pot under percolator • Turn on

  7. More examples • washHair: • Wet hair • Take shampoo and squirt into hand • Lather hair with shampoo • Rinse hair • repeat

  8. Programming Languages • Machine and assembly Level • Higher level • Imperative, object oriented • Declarative, functional • Implementation • Compiled • Interpreted • Hybrid

  9. Python • High level, object oriented, imperative language • Hybrid implementation, CPython • Similar functionality / Code organized into modules • Myro module

More Related