Variables in Swift

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.

The first question you will have is do we need to mention its type before we assign a …

2. Variables in Python

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 …

1.Hello World!

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 …