+ 3
What is the value of mystring after the following lines are executed?
def mystery(s): for i in range(len(s),1,-2): s = s[1:]+s[0]; return(s) mystring = "siruseri" mystring = mystery(mystring)
1 Odpowiedź
+ 34
serisiru
def mystery(s): for i in range(len(s),1,-2): s = s[1:]+s[0]; return(s) mystring = "siruseri" mystring = mystery(mystring)