Author name: vasu

Python lists

A list in Python is a datatype that is used to store multiple values. A list can be formed by assigning different values inside square brackets and separated by commas. Example mylist = ["India", "France", "Australia", "Nepal"] print(mylist) Output: [“India”, “France”, “Australia”, “Nepal”] Items in list are ordered, indexed, and

Python lists Read More »

PHP Constants

In PHP, a constant is like a variable except for one fact its value cannot be changed once it has been created. A valid constant name can be started with a letter or an underscore(_). There is no need to put the dollar sign($), as we do with a variable.

PHP Constants Read More »

Operators in C

Operators in C are used to perform some operations on variables and constant values. See the example below #include <stdio.h> int main(){ int a = 4, b = 5, c; c = a + b; return 0; } In the above example, we are using the addition operator(+) to add

Operators in C Read More »