Save
...
mock
programing
input , variable, output
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
emily d
Visit profile
Cards (21)
What are variables used for in programming?
To store
data
in programs
View source
How should variable names be formatted?
Lowercase
at the start
View source
What does the equals operator (=) do in programming?
Assigns
a value to a
variable
View source
What does the input function do in Python?
Captures
user
input
View source
What is printed when the input function is called with a prompt?
"
Please enter your name
:"
View source
What does the variable 'inputtedName' store?
The
name
entered
by
the
user
View source
What will the program output if the user enters "Bob"?
"Your name is:
Bob
"
View source
What does the print function do with the inputted name?
Displays the name on the
screen
View source
How does the program capture user input?
Using the input
function
View source
What are the key components of the program's input and output process?
Input function
captures user name
Variable
stores the
inputted
name
Print function displays the name
View source
What is the purpose of the console shell in the program?
To interact with the
user
View source
What does the term 'argument' refer to in the context of the print function?
The
data
passed
to
the
function
View source
How does the program ensure that the user's name is printed correctly?
By using the
inputted
name
variable
View source
What are the steps involved in the program's execution flow?
Prompt user for name
Capture input using
input function
Store input in a
variable
Print the
stored
name
View source
What is the output of the program if the user enters "Bob"?
"Your
name
is
:
Bob
"
View source
What is the significance of the variable 'inputtedName' in the program?
It holds the user's name
View source
How does the program handle the user's input?
It captures and stores it in a
variable
View source
What type of data does the input function return?
A
string
View source
Why is it important to use lowercase for variable names?
To follow
naming conventions
View source
If you wanted to change the prompt message, where would you modify the code?
In the
input function's
argument
View source
What happens if the user enters an empty name?
The
program
will still print an empty name
View source