How is a list created?
Python lists & file operations

Quiz
•
Computers
•
10th Grade
•
Medium
Enes isik
Used 16+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
a = 3, 5
a = [3, 5]
a = {3, 5}
a = list
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which python code means; assign 25 to the variable x2?
25 = x2
x2 = 25
x2, 25
25, x2
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
a = [2, 5, 8, 1]
print("a[2]")
What is the output above?
5
8
a[2]
2
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
list1 = ["hello", "hey", "hi"]
print(list1)
How many items will be printed?
1
2
3
0
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
filename="example.txt"
with open(filename, "w") as myfile:
myfile.write("Pershendetje")
What happens here?
a file called 'example' is being read
a file called 'example' is created and some text is saved in it.
The text in the 'example' file is assigned to a variable
a variable called filename is created and it's value is printed on a file
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Write the code how to print the number of items of a list called 'mylist'?
7.
MULTIPLE CHOICE QUESTION
30 sec • Ungraded
What do you think about the difficulty level of Python?
Very difficult
A little difficult
Average
Not difficult
Easy
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
HTML Basics

Quiz
•
8th - 10th Grade
15 questions
list in python

Quiz
•
10th - 12th Grade
15 questions
Bài 22-Kiểu dữ liệu danh sách

Quiz
•
10th Grade
10 questions
Exploring Python: Input and Output Essentials

Quiz
•
9th Grade - University
14 questions
Работа с файлами

Quiz
•
10th Grade
12 questions
Lists IN PYTHON!!!!!!!!

Quiz
•
KG - 12th Grade
10 questions
Search Engine

Quiz
•
10th Grade
10 questions
LUA Test

Quiz
•
9th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University