def even_checker(lst):
for x in lst:
if x%2==0:
print(x)
l = [1,2,3,4,5,6,7,8,9,10]
even_checker(l)
I wrote my code in python 3.8. I hope this helps.
Determining what percentage of customer 101 buys product A, and what percentage of the customer buys product B
In programming technology it used as common and some place it is varies.
If variable declared as string data type position represents the character of the string. If variable declare as integer data type position represent as cell reference.
Curly braces containing a number indicates the position of character in it data type is string
At the same it also indicates the position of a array .
Dim a as string = “HELLO”
A(2) – it is represents “L” where it started 0 optional bas
Dim a(10) as integer =(1,2,3,4,5,6,7,8,9,10)
A(2) – it represented array cell position answer is “3”.