0
How will you require user input
Asking for user input
4 Respuestas
+ 3
You use the
readLine()
function, which will return an optional string. So, you also need to unwrap it using the bang operator '!'.
+ 3
Calvin Thomas I don't think it actually is mentioned in the Swift course. The course is designed around building an iOS app and not so much a console app. It is also quite dated at this point as there is a much newer and updated version of Swift. Some of the code in the course is no longer valid for the newest version of Swift.
+ 1
ChaoticDawg Oh, I'm sorry for that. I had thought that this was there in Swift.
0
Khar Wonder I guess that this has been clearly mentioned in the course.