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
15 questions
ASK F2 -KOD ARAHAN (PYTHON)

Quiz
•
1st Grade - University
15 questions
[Python For All] Quiz 5 - Numpy

Quiz
•
University
10 questions
Python Basics

Quiz
•
University
15 questions
Grade 8 End of Unit Revision

Quiz
•
8th Grade - University
10 questions
Intro-Computacao_3.2

Quiz
•
University
10 questions
Python Yazılım Dilleri Soruları

Quiz
•
University
15 questions
Python Language Programming

Quiz
•
University
10 questions
Python - Functions

Quiz
•
University
Popular Resources on Quizizz
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
15 questions
Character Analysis

Quiz
•
4th Grade
12 questions
Multiplying Fractions

Quiz
•
6th Grade
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
Discover more resources for Computers
10 questions
Identifying equations

Quiz
•
KG - University
16 questions
Chapter 8 - Getting Along with your Supervisor

Quiz
•
3rd Grade - Professio...
6 questions
Railroad Operations and Classifications Quiz

Quiz
•
University
71 questions
Logos

Quiz
•
3rd Grade - University
8 questions
Mali - Geography

Quiz
•
University