Match the following lines of code with their corresponding method of creating a loop or recursion.
def count (x = 0, limit = 10):
while x < limit:
print (x)
x = x+1
else:
return (limit)
print(count())
def count (x, limit =10):
return ([i for i in range (x, limit)])
print (count(0))
def count (x = 0, limit = 10):
if x < limit:
print (x)
return count(x + 1)
else:
return (limit)
print(count())
def count (x=0, limit=10):
loop until x = limit:
print (x)
x = x+1
print(count())
A. For Loop
B. While Loop
C. recurrsion
D. Not a valid method of creating a loop or recurrsion