Game Development Reference
In-Depth Information
3 - Strings
the screen when the print() function is executed.
Strings are just a different data type that we can use in our programs. We can use the +
operator to concatenate strings together. Using the + operator to concatenate two strings
together to form a new string is just like using the + operator to add two integers to form a
new integer (the sum).
In the next chapter, we will learn more about variables so that our program will
remember the text and numbers that the player enters into the program. Once we have
learned how to use text, numbers, and variables, we will be ready to start creating games.
Search WWH ::




Custom Search