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 function is used to take input from the user in Python?
Think about how you would ask someone for their name.
How do you display output in Python?
What function would you use to show text on the screen?
What is the purpose of the input function in Python?
Consider what the input function is named for.
True or False: Output refers to information given by the user to the program.
Think about the direction of data flow.
Write a program that takes three numbers as input and prints their average.
Remember to sum the numbers and divide by the count.
Create a program that takes user input to calculate the area of a rectangle and outputs the result.
Ensure your calculations reflect the formula for the area: length × breadth.
5 more questions in this section. Enroll free to practise them all.
Enroll free