The variable word holds the string "Football". State the output of each line.
print(word.length)
print(word.subString(4, 3))
print(word.upper)
print(word.left(3))[4]
- 8(1)
- bal(1)
- FOOTBALL(1)
- Foo(1)
- Answer: 8; bal; FOOTBALL; Foo
- Examiner tip: Strings start at index 0, so subString(4, 3) begins at the 5th character ('b') and takes 3 characters.