These are the coding concepts that are taught on Banana Tales Part 1 and will be reviewed in this article: The print() function Lists and Indexes - challenges 19 - 25 For Loops - challenges 26 - 30 Range - challenges 31 - 40 Variables - challenges 41 - 47 Conditional Statements (if-else) - challenges 48 - 59 Conditional Loops (while) - challenges 60 - 66 Boolean Operators (and, or, not) - challenges 67 - 78 Functions - challenges 79 - 87 The print() function The print() function prints the specified message to the screen. The message can be a string (a text surrounded with quotation marks) or a variable. Place the message inside the parenthesis. For example: print("I love Python") In Banana Tales, the messages are printed in the console. When a challenge is opened, the console tab is closed. If the function print() is used, the console is opened and the messages are displayed. In programming, it is very common to use prints as a way to debug your program. For exampl...
Comments
Post a Comment