COMPSCI 1MD3 Chapter Notes - Chapter 2: Boolean Expression, Decimal Mark, Scientific Notation
Document Summary
Interpreted vs compiled refers to whether sequence of instructions written by programmer called source code is executed directed or first converted by compiler into machine level primitive operations. Python is relatively simple and easy to learn. Python program or script is a sequence of definitions and commands: definitions and commands executed by python interpreter called the shell. A command, or statement instructs the interpreter to do something: e. g (cid:862)yankees rule! (cid:863) instru(cid:272)ts interpreter to output the string yankees rule, print (cid:862)yankees result,(cid:863), (cid:862)(cid:271)ut not in boston! (cid:863) Returns: yankees rule, but not in boston: print command takes variable number of values and prints them, separated by a space character. In python 3, print is a function rather than a command. Objects are the core things the core things that python programs manipulate. Every object as a type, which defines what programs can do with objects of that type. Non scalar objects, like strings, have internal structure.