Homework: Print Your Name and Three Facts
Create a new Xcode project to play with indentation and then add code to display your name, city, and three facts about yourself.
print("Hi I'm Paul Solt from Rochester, NY") print("I love to throw a 175g Ultra-star disc from Discraft") print("I enjoy cooking food and chopping vegetables") print("I like when technology gets out of the way and helps me do something")
Create a new reply and paste your indented code below!
##Use Xcode to Format Code Quickly
- Indent your code properly
- Re-indent code: Select code and press Control + i
- Shift Right: Command + ]
- Indent Left: Command + [
- Copy the code the start of the first line to the end of the last line
- Paste the code directly into your Markdown supported editor
Update the Formatting in the Community Markdown Editor
You can also fix your code formatting on the Community forum when you edit a post (yours or someone else’s that didn’t format the code correctly).