Getting User Input and Outputting Variables in Python
Interactive Video
•
Other, Social Studies, Business, Information Technology (IT), Architecture
•
KG - University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main difference between the print statement in Python 2 and Python 3?
In Python 3, print is a statement.
In Python 3, print requires brackets.
In Python 2, print requires brackets.
In Python 3, print does not require brackets.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to get user input in Python?
read()
get()
input()
output()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why is it helpful to include a prompt in the input function?
To automatically fill in the input.
To inform the user that input is required.
To make the program run faster.
To ensure the program compiles correctly.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you combine two strings with a space in between in Python?
Using the + operator with a space string.
Using the add() function.
Using the join() method.
Using the combine() function.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the + operator do when used with strings in Python?
Subtracts one string from another.
Adds numerical values.
Concatenates strings.
Multiplies strings.
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Other
7 questions
Veteran's Day
Interactive video
•
3rd Grade
8 questions
Ancient China Quick Check
Quiz
•
3rd Grade
13 questions
Veterans' Day
Quiz
•
1st - 3rd Grade
6 questions
Veterans Day
Lesson
•
8th Grade
10 questions
Veterans Day
Quiz
•
3rd Grade
20 questions
Veterans Day
Quiz
•
6th Grade
10 questions
Bill of Rights
Quiz
•
4th Grade
10 questions
The Early Republic - 5th Grade
Quiz
•
5th Grade