
replace() isnumeric() challenge
Authored by Devin Lachapelle
Other
9th - 12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What data type do the methods lower(), upper(), replace(), and capitalize() return?
float
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What data type does the method isnumeric() return?
float
Answer explanation
A boolean value is either True or False.
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Given the Python code below, what will be the output?
word = "hello"
result = word.replace("l", "X")
print(result)
a) "heXlo"
b) "heXXo"
c) "hello"
d) "heXIX"
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following Python code?
sentence = "Hello world! Python is fun."
new_sentence = sentence.replace("Python", "Java").replace("fun", "exciting")
print(new_sentence)
a) "Hello world! Java is exciting."
b) "Hello world! Java is fun."
c) "Hello world! Python is exciting."
d) "Hello world! Python is fun."
5.
DRAW QUESTION
1 min • Ungraded
Use your drawing skills to give this python a more interesting look.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following Python code?
text = "2+2+2=6"
new_text = text.replace("+","")
print(new_text)
222=6
22+2=6
2 2 2=6
2+22=6
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What value will the variable var be set to?
var = "7.95".isnumeric()
True
False
7.95
"7.95"
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Descubre 1 Lección Preliminar Quiz
Quiz
•
10th Grade
10 questions
Spanish - Basic Greetings (1-10)
Quiz
•
KG - Professional Dev...
10 questions
ICT SKILLS
Quiz
•
9th - 10th Grade
10 questions
Avoiding Electrocution Hazards
Quiz
•
11th - 12th Grade
10 questions
Allusions in Frankenstein
Quiz
•
9th Grade
10 questions
Editing with Snapseed
Quiz
•
8th - 12th Grade
5 questions
Quality Street 1
Quiz
•
10th Grade
10 questions
Understanding Plagiarism
Quiz
•
6th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Other
20 questions
El Verbo IR Practice
Quiz
•
9th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
10 questions
Theme
Quiz
•
9th Grade
20 questions
Cell Organelles
Quiz
•
10th Grade
12 questions
Exponential Growth and Decay
Quiz
•
9th Grade