Robotics & Artificial Intelligence
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.
Python String Manipulation
1 Like
Answer
- """Hello How are you?
I am good.""" is an example of Multiline string. - The not in operator returns true if a character does not belong to a string.
- In Python \n is used to introduce a new line.
- The join function takes an iterator as an input of argument.
- The isdigit() function returns True if all the elements in the string are digits.
Answered By
3 Likes
Related Questions
The method used to check that all characters in a string are alpha numeric is …………… .
- isal()
- isalnum()
- isnum()
- isalphanum()
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
Write a Python program to convert all the letters of a string in uppercase.
Write a Python program to perform the following tasks.
a. "Hello, my friends, I am Jeck"
b. Replace Jeck with Tiya