Skip to content

python inverse string #7

@lionzhnn

Description

@lionzhnn

#!/usr/bin/env python #encoding=utf-8 print 'kill game by input end' while 1: s=input("input string:") if s== 'end': break; s1=''; index=0; l=len(s); print s[l-index-1]; while index<l: s1=s1+s[l-index-1]; index=index+1; print s1

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