CISC 101 Lecture Notes - Lecture 5: Complex Instruction Set Computing
Document Summary
Input() - asking the user for something via type or voice. Class examples: comparing the number of upper years in this course vs first years. If: statement defines a program that will only be executed if a certain event occurs. Else: statement will provide the alternative for the case that the if statement does not occur. You can paste your code into the program and it will allow you to see the execution of the program. == (two equal signs) is how you state equal. Elif() statement translates to "if and only if" the previous statement fails. The else statement is the last alternative statement you can add, and it is for when the if and elif statement fails.