Python -- Index/String

Python -- Index/String

Assessment

Flashcard

Computers

9th - 12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

2 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Based on the following lines of code, what will display in the console?
x = "Python"
print (x[0])
print (x[1])
print (x[2])

Back

P
y
t

2.

FLASHCARD QUESTION

Front

What will appear in the console based on the following code?
data = "No Way!"
x = len(data)
print(x)

Back

7