We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I had similar problem but I figured out it's because the difference between Playground and XCode.
The following the code is correct on Xcode but got error on Playground. It needs a space between '<' and '13'.
if age <13 {
print("You are young.")
}
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Day 4: Class vs. Instance
You are viewing a single comment's thread. Return to all comments →
I had similar problem but I figured out it's because the difference between Playground and XCode. The following the code is correct on Xcode but got error on Playground. It needs a space between '<' and '13'. if age <13 { print("You are young.") }