CISC 101 Lecture Notes - Lecture 9: Boolean Algebra, Elementary Arithmetic, Octal
Document Summary
Art of compuing -> algorithms -> informaion theory -> computer hardware. Data representaion -> hexa, octal, decimal and conversions -> boolean logic -> gates -> half bit full bit adders -> user applicaion operaing system hardware -> programming languages. Syntax -> compilers vs interpreters -> python -> basic arithmeic -> Unicode has many variants, uilizing between 8 and 32 bits for each character. Python uses utf-8, an 8-bit encoding compaible with ascii. Over 100k unicode deined characters for many of the languages of the world. The ord funcion gives the utf-8 ascii encoding of a character. The chr funcion gives the character for a given encoding value. Control characters are special characters that are not displayed. We use a combinaion of characters: escape sequence . E. g. , \n is the newline control character, that begins a new screen line, Built-in funcion format controls how strings are displayed, To center a string the ^" character is used: