I&C SCI 32 Study Guide - Midterm Guide: Network Address Translation, Localhost, Loopback

465 views6 pages

Document Summary

Information: the data your program works with (ex: inputs, remembered results, outputs, etc. ) Operation: what your program does (ex: functions, calling built-in functions, etc. ) The type of data lets you know what you can/can"t do with it and what output you get when you do something legal. Ex: a = alex" // b = boo" // a - b << will return a typeerror: unsupported operand type(s) for -: str" and str". A - b works for ints, but not for strings because python disallows it. Used to organize data (ex: lists, tuples, sets, dictionaries) Try to pick the best structure for your problem. Lets you organize your program into small units of work. Functions can accept parameters that control how they work. Functions always return a single result (may be none if it doesn"t return anything; like if it prints output)

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers

Related Documents