Computer Science, asked by farhanmsaigil7, 9 months ago

1.Find the output
def Show(str,key):
X=0
L=len(str)
while x<L//2:
If x%2 is not 1:
print(str[x]*key)
else:
print(str[x]*(key+1))

X+=1
Key+=2
Show(“PYTHON”,1)

Answers

Answered by tanushkharbanda385
0

Answer:

1.Find the output

def Show(str,key):

X=0

L=len(str)

while x<L//2:

If x%2 is not 1:

print(str[x]*key)

else:

print(str[x]*(key+1))

X+=1

Key+=2

Show(“PYTHON”,

Explanation:

Similar questions