50 likes | 206 Views
Objective: Students will be able to write ASCII art programs. Agenda: Notes Programming Challenges. Strings and Quotes. Single (‘) and double quotes (“) around a line of letters and or numbers creates a string. Example: “Game Over” or ‘Game Over’ Both are the same. Prints the same
E N D
Objective: Students will be able to write ASCII art programs Agenda: Notes Programming Challenges
Strings and Quotes • Single (‘) and double quotes (“) around a line of letters and or numbers creates a string. Example: “Game Over” or ‘Game Over’ Both are the same. Prints the same 2. You can put a quote inside a quote: “Program ‘Game Over’ 2.0” Prints: Program ‘Game Over’ 2.0 Single inside double; Double inside single Both work. Can’t use same type inside line.
\ Line continuation character • Continues statement on the next line • Print \ • Computer will see one long line of code • Example: Game Over Version 2.0 Program • Triple quotes used for multiple line quotes • ASCII art: pictures made from characters on the keyboard
Today’s Programming Assignments • Create ASCII art program or programs