Knowee
Questions
Features
Study Tools

Write a function that reads your name in lowercase and perform the following operationprints it in uppercaseprints the length of the name

Question

Write a function that reads your name in lowercase and perform the following operationprints it in uppercaseprints the length of the name

🧐 Not the exact question you are looking for?Go ask a question

Solution

Sure, here is a Python function that does what you asked for:

def name_operation(name):
    # Convert the name to uppercase
    upper_name = name.upper()
    print("Name in uppercase: ", upper_name)

    # Print the length of the name

Similar Questions

Write a function that reads your name in lowercase and perform the following operationprints it in uppercaseprints the length of the nameSample Inputsanjay kumarSample OutputSANJAY KUMAR12

Define a function name_operation(str1), with one string argument. In this function:a. Use upper() function to convert str1 into Uppercase letters, and assign value to variable upperStrb. Use lower() function to convert str1 into Lowercase letters, and assign value to variable lowerStrc. Use title() function to convert the first character of each word in str1 to Uppercase letter, and assign value to variable titleStr

Write a program that takes a string of lowercase characters as input and prints it in uppercase, reversed.

Which method can be used to return a string in upper case letters?

Write a program that prints the alphabet in lowercase, and then in uppercase, followed by a new line.You can only use the putchar function (every other function (printf, puts, etc…) is forbidden)All your code should be in the main functionYou can only use putchar three times in your code

1/3

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.