CMPT 165 Chapter Notes - Chapter 7: Markup Language, Xhtml, Media Type
Document Summary
7. 1 what is programming: a computer program is a list of steps that a computer can follow to accomplish some task computer, programming language: a particular way of expressing instructions to a. Are all designed for different reasons, and all have strengths and weaknesses. But they share many of the same concepts: markup language vs. A markup language (e. g. , xhtml) is used to create a document, whereas a programming language is used to create a computer program. 7. 2 starting with python: python programs are made up of statements a statement is basically an instruction in the program. The statements that make up the program are followed in order. A simple python program with two statements. The two statements here are both print statements. In python, statements are typed one per line: print statement: Is used to put text on the screen. Whatever comes after it on the line will be put on the screen.