Answer:
data = [0,1,2,3,4]
for i in range(4):
print(data[i])
i+=1
Explanation:
Loops can be utilized in a listing process by looping back to a list with a variable while the loop increases that variable to give a different response from the list.
The line code will create array is G = array('f',[2.5, 3, 7.4])
<h3>What is meant by array ?</h3>
As opposed to defining distinct variables for each value, arrays are used to hold numerous values in a single variable. Set the data type (such as int) and the array name, followed by square brackets [, to construct an array.
An array is a collection of elements with the same type that are kept in nearby memory locations and may each be separately referred to using an index to a special identifier. There is no need to declare five distinct variables when declaring an array of five int values (each with its own identifier).
In the C programming language, arrays are a derived data type that may contain primitive data types like int, char, double, float, etc.
To learn more about array refer to :
brainly.com/question/28061186
#SPJ1
Explanation:
A default constructor is a constructor that present in the class by default with no parameters when we write a new constructor with parameters it is called overloaded constructor.There can be different overloaded constructors in the same class.
The main difference between default constructor and overloaded constructor is that the default constructor does't have any parameters while the overloaded constructors have parameters.