There is no excerpt because this is a protected post.
We just saw how to declare a variable in swift using the “var” keyword. Now we will learn how to declare constants in swift. To declare constants in swift we make use of the “let” keyword. Constant is a set of value/values which cannot be changed at any time in the program. The constants lets you finalize a value. The …
The first thing we do in any programming language is create variables. So lets get started. In Swift we do this by using a keyword “var“. The variable name is generally camelCased using lowercase first letter, e.g areaOfCircle; preimeterOfSquare; surfaceArea etc.
var areaOfCircle = 200.45
var radiusOfCircle = 50
The first question you will have is do we need to mention its type before we assign a …
Apple presented a new language for iOS and OSX developers called Swift. Its now came to light that Swift was underway since 2010, which is 2 years after the first SDK was released. Apple saw the restrictions of Objective-C which is very nearly 30 years old and decided it was the ideal time for a change. In any case, in …
A variable is a unit of data with an identifier which is held in the computer’s memory. It can be changed by putting a new value into it or modifying the value that is already there. Here you will be introduced to some different types of variables that are available for us in our programs. We will have a brief …
The python code can be written in a stand alone “Python Shell”. This simplifies the life of a programmer. The shell allows you to enter Python command just as we do in a command-line interface. This is a great resource for immediate Python gratification. Here we are going to learn how to write our basic code; “Hello World!”. For this you …
- Page 2 of 2