Skip to content

another solution #27

Open
Open
@AbdallahNagy

Description

@AbdallahNagy

you can also use the swap case built-in function
most people don't know that its exist

def swap_case(s):
    return s.swapcase()

if __name__ == '__main__':
    s = input()
    result = swap_case(s)
    print(result)

happy coding

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions