CMPT 165 Lecture Notes - Lecture 17: Malware, Usability, Virtual Memory
Document Summary
Why python? relatively easy to learn markup vs programming: annotating, giving meaning to elements (markup is annotation only, programming is more advanced, having data you input to program, does some processing, and results in output. Data: numbers, characters - strings, booleans - true/false comparison. Process: operations- arithmetic (add/subtract), logical (if-else, put your data in variables. If you don"t store your data it will be lost. In python you can name variables anything: typically you abbreviate into one, use an _ if you use 2 words in one variable, a variable is useless until you add a value to it, eg x=10. If you want to make a string you need double quotation marks. You can change the value of variables at any time throughout the programming. If var1= hello: var1*3= hellohellohello, can"t multiply words so you just repeat the string 3 times.