Skip to content

Кодирование/декодирование #330

@myltik1702

Description

@myltik1702

def rotate_digits(digits, shift):
shift = shift % len(digits)
return digits[-shift:] + digits[:-shift]

rotate_digits('123', 1) → '312'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions