A. True or False 1. We cannot create an empty string. 2. The negative index accesses characters from the beginning of a string. 3. A programmer cannot use the for loop to traverse all characters in a...

A. True or False

1. We cannot create an empty string.


2. The negative index accesses characters from the beginning of a string.


3. A programmer cannot use the for loop to traverse all characters in a string.


4. It is impossible to traverse every third character of a string using the for loop.


5. A programmer can only use the while loop to traverse all characters in a string.


6. Mutable strings mean changeable strings.


7. The slicing operator returns a subset of a string.


8. The + operator concatenates two strings.


9. The > is the comparison operator in strings.


10. The format() is one of the methods used in strings.


11. The isdigit() is used to test for integers.


12. Python provides various methods to remove white space characters.


13. Strings cannot be formatted.


14. The rjust(int width) returns a string right justifi ed in a fi eld of the given width.


15. The is Reverse(word1, word2) is used in Python. 1. What is a string?




May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here