1 Comment

I have done mine.

def string_manipulation():

name = input("Please enter your full name: ")

name_without_spaces = name.replace(" ", "")

print(f"Your name in uppercase is {name.upper()}.")

print(f"Your name in lowercase is {name.lower()}.")

print(f"Total number of characters (excluding spaces): {len(name_without_spaces)}.")

print(f"Your name reversed is {name[::-1]}.")

string_manipulation()

Expand full comment