User input
accepting data from a user in a Python program
To accept data from a user in a Python program, we can assign a variable with the input()
function and place a prompt inside the brackets:
Last updated
accepting data from a user in a Python program
To accept data from a user in a Python program, we can assign a variable with the input()
function and place a prompt inside the brackets:
Last updated