Quiz: Data Types, Variables, and Operators

Test your knowledge of Python's data types, variables, and operators with this quiz.

1

What will be the output of the following piece of code?

my_string = "0123456789"
print(my_string[-2: -6: -2])
A)

5432

B)

8765

C)

53

D)

86

Question 1 of 50 attempted

Get hands-on with 1200+ tech skills courses.