#logo printing

1 messages · Page 1 of 1 (latest)

covert pelican
#

I have to print a representation of the University of Washington “W” through user input of any letter. However the output shows an “M” instead of a “W”, how do I flip it? Also I need to add lines on top of the w, as shown below. How would I do that?

regal compassBOT
#

<@&987246399047479336> please have a look, thanks.

covert pelican
regal compassBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

#

Here is an AI assisted attempt to answer your question 🤖. Maybe it helps! In any case, a human is on the way 👍. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.

#

rotate it 180 degrees. How can I achieve this?

To flip the letter, you can use the following steps:

  1. Define a function that takes a letter as input.
  2. Create a dictionary mapping each letter to its flipped version. For example, map "A" to "∀", "B" to "ᗺ", etc.
  3. Check if the input letter exists in the dictionary. If it does, retrieve its flipped version; otherwise, return the input letter as is.

Here's an example implementation in Python:

def flip_letter(letter):
    flip_dict = {
        "A": "∀",
        "B": "ᗺ",
        # Add mappings for other letters...
    }
    
    if letter in flip_dict:
        return flip_dict[letter]
    else:
        return letter

# Example usage:
user_input = input("Enter a letter: ")
flipped_letter = flip_letter(user_input)
print(flipped_letter)

To rotate the flipped letter 180 degrees, you can use Unicode characters that represent rotated versions of each character. Here's an updated implementation:

def rotate_letter(letter):
    rotation_dict = {
        "∀": "ɐ",
        "ᗺ": "ᗺ",
        # Add mappings for other letters...
    }
    
    if letter in rotation_dict:
        return rotation_dict[letter]
    else:
        return letter

# Example usage:
user_input = input("Enter a letter: ")
flipped_letter = flip_letter(user_input)
rotated_letter = rotate_letter(flipped_letter)
print(rotated_letter)

Note: The above examples only include mappings for a few letters as an illustration. You will need to add mappings for all necessary letters to achieve your desired output.

covert pelican
#

So I changed it, but it still won’t work

#

I get this output instead

#

I feel like I’m super close, but I just don’t understand what I’m doing wrong

earnest sphinx
#

also you should understand what this line does

#

then the logic should be pretty simple