Question: 2 Consider the following Python program, This program computes and prints P as (3 Puan) def func(si): if S=O: return . else: return S+a*(i) #main
2 Consider the following Python program, This program computes and prints P as (3 Puan) def func(si): if S="O": return "." else: return S+"a"*(i) #main S="10204" P="" for d in S: PEP+func(d, s.index(d)) print(P) 102aa0daaaa 1.2aa daaaa 10.2012. Aaaaa Tazaaaaa
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
