1 / 5

CS 101 – Oct. 12

CS 101 – Oct. 12. Software problem solving Process Languages Python language. Process. The usual procedure for writing a program from scratch involves these steps: Read & understand the problem Explain how to solve the problem in English.

Download Presentation

CS 101 – Oct. 12

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. CS 101 – Oct. 12 • Software problem solving • Process • Languages • Python language

  2. Process • The usual procedure for writing a program from scratch involves these steps: • Read & understand the problem • Explain how to solve the problem in English. • Write solution in the desired programming language • Compile the program • Some languages are interpreted rather than compiled. • Run the program, check the output.

  3. Some languages • Machine languages • Assembly languages • High-level languages • FORTRAN (1957) • Pascal • C and C++ • Java • Javascript and Python

  4. Python • Guido van Rossum, CWI, 1991 • High-level and multi-purpose  • One of the easiest languages to learn • Used by Google & CG animation studios • Python is often efficient when working with huge amounts of text/numerical data • Many built-in functions to simplify our work

  5. Practical stuff • To develop our Python solutions, we’ll use a free software package called ActivePython 2.6 • Allows us to edit and run programs • You’ll see 2 windows: one for editing the code, and other for running the program • Python file name ends in .py • What is a program? • Set of statements: performing operations on variables • Let’s see how to do… input, calculations, output

More Related