1 / 12

Python

Python. Chapter one. What we will look at today. Roles of Hardware and software The study of computer science Understanding the basic design of the modern computer Understanding the form and function of computer languages Begin using Python. Computers – The Universal Machine.

christmas
Télécharger la présentation

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. Python Chapter one

  2. What we will look at today • Roles of Hardware and software • The study of computer science • Understanding the basic design of the modern computer • Understanding the form and function of computer languages • Begin using Python

  3. Computers – The Universal Machine • Adding machines add • Typewriters type • Computers…well, computers do almost everything “a machine that stores and manipulates information under the control of a changeable program”

  4. The study of computer science • “Computers are to computer science what telescopes are to astronomy.” EdsgerDijkstra • Not about the tool, rather about the process. What can be computed? • Techniques used to answer that question: • Design • Analysis • Experimentation

  5. Design • The development of algorithms • Only answers the question what is computable in the positive

  6. Analysis • Studying algorithms mathematically to determine computability • Some problems are unsolvable – they cannot be represented algorithmically • Some problems are intractable – they can be solved, it just takes an unrealistically long time. The Answer to Life, the Universe, and Everything = 42 ~Deep Thought (7.5 million years)

  7. Experimentation • Actually implementing systems to determine their viability

  8. Hardware Output Devices CPU Input Devices Secondary Memory Main Memory

  9. Programming languages • Well defined, unambiguous syntax and semantics • Compiled – converts source code to machine code • Interpreted – simulates a computer that understands the language

  10. Python • Open Idle • Add 5 + 5 Discuss parameters • Create a function that takes a parameter and outputs a message using the parameter

  11. Chaos • Create chaos – opening a new window • Type in code • Save it • Recall it • Run it • Let’s take a closer look • Reusable pieces • Libraries

More Related