Computer Science, asked by hershi3009, 4 months ago

8. What will be the output of the following code:

def JumbleUp(mystr):

L = len(mystr)

str2='' “

str3='' “

for i in range(0,L,2):

str2=str2 + mystr[i+1]+mystr[i]

for ch in str2: if ch>='R' and ch<='U': str3+='$'

else:

str3+=ch.lower()

return str3

mystr="HARMONIOUS"

mystr=JumbleUp(mystr)

print(mystr)​

Answers

Answered by MrPoizon
4

Answer:

py. script

mark \: brainliet

Explanation:

def JumbleUp(mystr):

L = len(mystr)

str2='' “

str3='' “

for i in range(0,L,2):

str2=str2 + mystr[i+1]+mystr[i]

for ch in str2: if ch>='R' and ch<='U': str3+='$'

else:

str3+=ch.lower()

return str3

mystr="HARMONIOUS"

mystr=JumbleUp(mystr)

print(mystr)

Answered by Anonymous
11

Answer:

\bold\pink{❥ᴀ᭄ɴsᴡᴇʀ:⤵}

Explanation:

def JumbleUp(mystr):

L = len(mystr)

str2='' “

str3='' “

for i in range(0,L,2):

str2=str2 + mystr[i+1]+mystr[i]

for ch in str2: if ch>='R' and ch<='U': str3+='$'

else:

str3+=ch.lower()

return str3

mystr="HARMONIOUS"

mystr=JumbleUp(mystr)

print(mystr)

Similar questions