logo CodeStepByStep logo

dracula

Language/Type: Python string

What is the value of s after the following code is finished running?

s = "dracula"
for i in range(len(s)):
    a = s[0]
    b = s[1:]
    s = b + a
value of s
(order shuffled)

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.