50 likes | 163 Views
This guide explores the fundamentals of software problem solving using Python. It outlines the usual procedure for developing a program from scratch, including understanding the problem, conceptualizing a solution in English, implementing it in Python, and testing the output. Python, known for its simplicity and efficiency in handling large data sets, is a high-level language that's accessible for beginners. This resource utilizes ActivePython 2.6, providing a user-friendly environment to edit and run code.
E N D
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. • Write solution in the desired programming language • Compile the program • Some languages are interpreted rather than compiled. • Run the program, check the output.
Some languages • Machine languages • Assembly languages • High-level languages • FORTRAN (1957) • Pascal • C and C++ • Java • Javascript and Python
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
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