TEAM LICENSES: Save money and learn new skills through a Hacking with Swift+ team license >>

SOLVED: Day 2: Checkpoint 1

Forums > 100 Days of SwiftUI

Hi all,

I am very new to development. I believe I successfully coded this first checkpoint.

let temperatureCelsius = 32.0

let conversion = temperatureCelsius * 9 / 5 + 32

let temperatureConversions = " The temperature in celsisus is (temperatureCelsius)° and the temperature in Farenheit is (conversion)°. " print(temperatureConversions)

Does this look ok?


Welcome to the Forum. Your code looks great! But you'll need to use the Code button at the top when you insert code here. It's the fourth button along so that when you insert your code to the forum your code looks like this:

let celcius = 32.1
let fahrenheit = "\(celcius * 9 / 5 + 32)"
print ("Fahrenheit: \(fahrenheit)° Celcius: \(celcius)°")

It makes it MUCH easier for us to read and some characters may not come across properly if you don't do the insert code button. Use the preview button if your'e not sure. Looking at your code on here I think some of your backslashes are missing when you did string interpolation. I'm sure you would not have missed that in the real code.

Keep going. You'll do well!


Thank you so much for the quick response. I'm on Day 3 now and your response really helps with motivation.

Thank you again!


Hacking with Swift is sponsored by Superwall.

SPONSORED Superwall lets you build & test paywalls without shipping updates. Run experiments, offer sales, segment users, update locked features and more at the click of button. Best part? It's FREE for up to 250 conversions / mo and the Superwall team builds out 100% custom paywalls – free of charge.

Learn More

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

Unknown user

You are not logged in

Log in or create account

Link copied to your pasteboard.