What is a Python library?

Loops-downloads-functions

Quiz
•
Computers
•
University
•
Hard
peter verkinderen
Used 2+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A named block of Python code that is reusable
A collection of functions that expands the capabilities of Python
A function that reads/writes files
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
What are examples of Python libraries?
regex
requests
open
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which program do you use to download and install a new Python library?
import
pip install
pip3 install
git pull
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what are examples of a correct for loop in Python?
for x in [1,2,3]
print(x)
for item in [1,2,3]:
print(x)
for item in [1,2,3]:
print(item)
for x of [1,2,3]:
print(x)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
dates = [1210, 1520, 1340]
for date in dates:
print(dates)
[1210, 1520, 1340]
[1210, 1520, 1340]
[1210, 1520, 1340]
[1210, 1520, 1340]
1210
1520
1340
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which regex will match only the URL?
<a href="https://example.com">example</a>
"href=".+""
"href="(.+)""
'href="(.+)"'
'href="([^"]+)"'
7.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which Python library is used for regular expressions?
requests
re
regex
RE
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Python

Quiz
•
University
10 questions
Python 1

Quiz
•
University
10 questions
PF Unit 10

Quiz
•
9th Grade - University
10 questions
Python Basics

Quiz
•
University
16 questions
Python Basics

Quiz
•
KG - University
15 questions
Python Basics

Quiz
•
KG - University
15 questions
[Python For All] Quiz 5 - Numpy

Quiz
•
University
12 questions
Lesson 1 - The Basics

Quiz
•
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