Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What does the input() function do?
Think about how we interact with the program.
What type of data does the variable type for input() return?
What do we call text values in programming?
What does the input() function do?
Think about how you gather data from users.
The print() function outputs data to the user. True or False?
Consider how you would let the user see output messages.
Create a script that asks for the user's favorite food, stores that, and then prints a complete sentence about it, such as 'Your favorite food is Pizza.'
Think about how to structure your sentences while including the variable.
Write a program that asks for a user's first name and last name, then prints a greeting using both names in a formatted manner.
Use both first and last name variables in your print statement.
5 more questions in this section. Enroll free to practise them all.
Enroll free