+ 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)

12th Feb 2018, 9:37 AM
darshan ks
darshan ks - avatar
1 Odpowiedź
+ 34
serisiru
12th Feb 2018, 10:35 PM
Hosseinam
Hosseinam - avatar