Robotics & Artificial Intelligence
Write a Python program to convert all the letters of a string in uppercase.
Python String Manipulation
2 Likes
Answer
name = "My name is Jack"
new_name = name.upper()
print(new_name)Output
MY NAME IS JACK
Answered By
1 Like
Related Questions
What would be the output of following code?
information = "I am studying in class X !" val = information.find("studying") print("The index is: ", val)- 5
- 6
- 7
- Error
Fill in the blanks:
- """Hello How are you?
I am good.""" is an example of ……………. . - The ……………. operator returns true if a character does not belong to a string.
- In Python ……………. is used to introduce a new line.
- The ……………. function takes an iterator as an input of argument.
- The isdigit() function returns ……………. if all the elements in the string are digits.
- """Hello How are you?
Write a Python program to perform the following tasks.
a. "Hello, my friends, I am Jeck"
b. Replace Jeck with Tiya
Write a Python program to check the index of a particular character.