Making our own function
Earlier in the chapter, we looked at how one could write code that simulates the making of a pizza. The code looked like this:
print("Flattening the dough to form a round pizza ") print("Adding some tomato sauce ") print("Adding some mozzarella cheese ") print("Adding some spicy pepperoni ") print("Preparing the pizza in the oven ...
Get Swift iOS Programming for Kids now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.