![]() Print("World") Because the triple-double-quote was never closed, so the multi-line comment was never ended which makes all of the rest of the commands into a comment, so when the file ends, Python is confused Physical damage to a computer happens, but it is not the biggest problem. ![]() ![]() Print("World") Because the parenthesis was never closed, so the print command never finished, yet on the next line there is a new print command and Python can't understand this Look at program Synta圎rror07.py. Print("World") Because the last quote was missing so Python detected the end of a line before the end of the string literal Look at program Synta圎rror06.py. Prnt("World") Because 'print' was misspelled to 'prnt' which Python doesn't understand Look at program Synta圎rror05.py. PRINT("World") Because 'print' was capitalized to 'PRINT' so Python doesn't work (case sensitive) Look at program Synta圎rror0py. (indent) print("World") Because there is an unexpected indent which prevents the whole program from executing Look at program Synta圎rror03.py. Print("Seven") Because there is a triple-double-quote at the beginning and end of the comment which blocks it out What is a string literal? Any text in-between a set of quotes Look at program Synta圎rror01.py. Why does the output only display "One", "Two", "Six" and "Seven" and not display "Three" through "Five"? Hashtag (#) What symbol is used to essentially create multi-line comments in Python? Triple-double-quotes Look at program Comments02.py. Read debug update enhance In Python, when you begin a line with a _ the entire line is ignored by the computer. Science What does crlf stand for? carriage-return/line-feed A well-documented program is easier to _, _, _ and _. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |