COSC 111 > Selection > Flashcards
Switch statement
Used to replace switch statement. Works only with equality statements. Only works with integers or strings
Break
Ends code
Case
Possible values of x, arbitrary.
Yield
return statement (replaces entire code)