If str = "Python Programming" what is the output of print(str[ : 6]) An Error Message n Python Pytho 2. If str = "Python Programming", what is the output of print(str[ -4 ])? i m a P 3. If str = "Python Programming", what is the output of print(len(str))? 19 18 17 20
1. If str = "Python
An Error Message |
||
n |
||
Python |
||
Pytho |
2. If str = "Python Programming", what is the output of print(str[ -4 ])?
i |
||
m |
||
a |
||
P |
3. If str = "Python Programming", what is the output of print(len(str))?
19 |
||
18 |
||
17 |
||
20 |
4. Select all that apply:
str[0] |
||
str[-1] |
||
str[len(str)] |
||
str[len(str) -1] |
Jack |
||
Jill |
||
Jillw |
||
and |
6. if str = "Python Programming" what is the output of print(str[ 7: ])
rogramming |
||
gramming |
||
An Error Message |
||
Programming |
7. if str = "Python Programming", what is the ouptut of print(str[5])
t |
||
o |
||
n |
||
h |
8. Once a sting is created its individual characters cannot be changed
True
False
9.
-
The code segment below is free of any errors
str = "Game"
str[0] = "L"
print(str)
True
False
10.
Step by step
Solved in 7 steps with 3 images