3

Learning about Variables, Constants, Strings, and Operators

The first program I ever wrote was written in BASIC and was the typical Hello World application. This application was exciting at first, but the excitement of printing static text wore off pretty quickly. For my second application, I used BASIC's input command to ask the user for a name and then printed out a custom "hello" message with the name they entered. At the age of 12, it was pretty cool to display Hello Han Solo. This application led me to create numerous Mad Libs-style applications that prompted the user for various words, and then put those words into a story that was displayed after the user had entered all the required words. These applications introduced me to, and taught ...

Get Mastering Swift 5.3 - Sixth Edition 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.