Exercises on Python Console Operations

The following exercises cover scenarios on console operations in Python, that is to read input from user, or print some values to standard output for user.

Exercise 1

Which built-in function is used to read input from user?

Type the built-function in the following, where we read an input from user, and assign the read input to variable x.

x = input()

Exercise 2

Which built-in function is used to print to standard output?

x = 'hello world'


Code copied to clipboard successfully 👍