Hello, welcome to the fourth tutorial in the swift basic series. And in this polling we're looking at constants, constants and then name suggests contain a constant value which cannot be changed which is good for properties etc. and it can also be used if you have some sort of setup process at the start of the application or game and you want it to be constant. Any is the key word let to declare a constant process, open up our project. If you watched our previous video on how to use variables, it's very similar to that the only difference being used the keyword left instead of four. And you can't manipulate it after it's been created.
So to create a concluding let the name of your constant song cowboy equals nine. And now we can print this out so print ln See I run at a nice printed knowing, but if I try and modify nine, I mean I do oil equals eight for example and run it, it will fail because cannot assign to let value I simply because I is a constant. I had the band nine, so it can't be changed with any other value. That's it for this tutorial. In the next tutorial we're going to show you typecasting if you have any questions feel free to message or support our solar system Dakota UK email will be in the description. You can comment on this video or directly messages via YouTube source code produced from This tutorial will also be in the description or link and as usual, thanks for watching and have a nice day.