Select Page

Crazy Level

Swift and Xcode Resources.

Running code in a quoted PRINT command
Published on: February 18, 2021
Author: Frank Vernon

Basic Print command:
print(“This is text that is printed”)
The result will be:
This is text that is printed

Running simple code inside a print command uses \(something) inside it.
Example:
print(“This number 25 is the same as \(20+5).)
The result will be:
This number 25 is the same as 25.