Chapter 8 short answer
अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!
What does the following code display? numbers = [1, 2, 3, 4, 5, 6, 7] print(numbers[4:6])
[5, 6]
What does the following code display? mystr = 'yes' mystr += 'no' mystr += 'yes' print(mystr)
yesnoyes
What does the following code display? mystr = 'abc' * 3 print(mystr)
abcabcabc
What will the following code display? mystring = 'abcdefg' print(mystring[2:5])
cde
What does the following code display? name = 'joe' print(name.lower()) print(name.upper()) print(name)
joe JOE joe joe