Rewrite the complete Python script after replacing the while-loop with a for-loop. astr=input('Input a string? ')) c, s=-1, "" while True: c+=1 if c==len(astr): break s+=astr[k] print(s) What will be the output when inputted value of astr is BOWL? [2] 23. Give the output of the Python script given below: [2] neta, netb='CoMpUtEr', "" for k in range(8): if neta[k].isupper(): ch=neta[k].lower() elif neta[k].islower(): if k%2: ch=neta[k-1] else: ch=neta[k].lower() netb+=ch print(netb) 24. Give the output of the Python script given below: [3] alist=[469, 378, 594, 678, 253] for number in alist: x, y=number%100, number//10 print(x+y, end='@')
Yay I reached the no rank zone
Now I don't have any rank
:l
Answers
Answer:
Rewrite the complete Python script after replacing the while-loop with a for-loop. astr=input('Input a string? ')) c, s=-1, "" while True: c+=1 if c==len(astr): break s+=astr[k] print(s) What will be the output when inputted value of astr is BOWL? [2] 23. Give the output of the Python script given below: [2] neta, netb='CoMpUtEr', "" for k in range(8): if neta[k].isupper(): ch=neta[k].lower() elif neta[k].islower(): if k%2: ch=neta[k-1] else: ch=neta[k].lower() netb+=ch print(netb) 24. Give the output of the Python script given below: [3] alist=[469, 378, 594, 678, 253] for number in alist: x, y=number%100, number//10 print(x+y, end='@')
Explanation:
now you have to do a boring work
answering questions.
# No rank zone
Answer:
Rewrite the complete Python script after replacing the while-loop with a for-loop. astr=input('Input a string? ')) c, s=-1, "" while True: c+=1 if c==len(astr): break s+=astr[k] print(s) What will be the output when inputted value of astr is BOWL? [2] 23. Give the output of the Python script given below: [2] neta, netb='CoMpUtEr', "" for k in range(8): if neta[k].isupper(): ch=neta[k].lower() elif neta[k].islower(): if k%2: ch=neta[k-1] else: ch=neta[k].lower() netb+=ch print(netb) 24. Give the output of the Python script given below: [3] alist=[469, 378, 594, 678, 253] for number in alist: x, y=number%100, number//10 print(x+y, end='@')
Yay I reached the no rank zone
Now I don't have any rank
hii domb
sorry for answering
can u be my secret friend???
just kidding
sorry for answering again sorry