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


संबंधित स्टडी सेट्स

Saunders ch30 Postpartum Complications

View Set

Chapter 91: Miscellaneous Antibacterial Drugs: Fluoroquinolones, Metronidazole, Daptomycin, Rifampin, Rifaximin, Bacitracin, and Polymyxins

View Set

Female Reproductive System Physio

View Set

NURS 355 Chapter 2, NURS 355 Chapter 4, NURS 355 Chapter 10, NURS 355 Chapter 12, NURS 355 Chapter 13, NURS 355 Chapter 15, NURS 355 Chapter 17, NURS 355 Chapter 22, NURS 355 Chapter 5, NURS 355 Chapter 27, NURS 355 Chapter 28, Chapter 01: Perspectiv...

View Set

Developed/developing countries - Characteristics

View Set

Employee Training and Development Exam #2 Study Guide

View Set

APES Topic 1.8: Primary Productivity

View Set