Program: <?php function display() { static $a = 10; $b = 20; echo "Static A= $a<br/>"; echo ...
Read More
13 Local and Global variables in PHP
Program: <?php $a = 10; function display() { global $a; echo "Global A= $a <br>"; $a = 20; $b = 30; ...
Read More
6 Program to display all the data types in object oriented programming using Frame layout in Android Studio
AndroidManifest.xml: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.and...
Read More
5 Program to display 10 students basic information in a table using Table Layout in Android Studio
AndroidManifest.xml: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.and...
Read More
1 Program to create NumPy and Display type, length, dimensional and shape in Python
Program: import numpy as np array = np.array([10,20,30,40,50] , dtype=int) print(array) print(type(array)) print(len(array)) print(a...
Read More
25 Program to create a set, add member(s) in a set and remove one item from set in Python
Program: var_set = set([10,20,30]) print(var_set) var_set.add(50) print(var_set) var_set.pop() print(var_set) Output:
Read More
Subscribe to:
Posts (Atom)