diff options
Diffstat (limited to 'python/code/3/3.py')
-rw-r--r-- | python/code/3/3.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/python/code/3/3.py b/python/code/3/3.py deleted file mode 100644 index 7f9a98f..0000000 --- a/python/code/3/3.py +++ /dev/null @@ -1,11 +0,0 @@ -full_name = input("Enter your full name: ") -space_index = full_name.rfind(' ') - -if space_index == -1: - print(f"Your name in reverse: {full_name}") -else: - first_name = full_name[:full_name.index(' ')] - last_name = full_name[space_index + 1:] - print(f"Your name in reverse: {last_name}, {first_name}") - - |