SYSC 1005 Study Guide - Midterm Guide: Operand, Type System

76 views1 pages

Document Summary

A program is a sequence of instructions that specifies how to perform a computation. Shell is a program where you type a statement and interpreter will execute the statement at same time. A value is one of the basic things a program works with, like a letter or a number. Types do not need to be declared in python (dynamically typed). It creates a variable when assigned a value. Int float conversion: if operands are int float, int is converted to float automatically but if both int, answer remains int unless / Integers (int) (all neg num, 0 n even large num) Decimals (float)(#. 0)(#. ) (all real num, even neg, n large num) String (str) (value with quotes around) ) Importing statements refers to a module object which refers to other function objects to use functions from it.