Python Input Output
We use the print() function to output data to the standard output device (screen).
Up till now, our programs were static. The value of variables were defined or hard coded into the source code.
To allow flexibility we might want to take the input from the user. In Python, we have the input() function to allow this. The syntax for input() is
We use the print() function to output data to the standard output device (screen).
Up till now, our programs were static. The value of variables were defined or hard coded into the source code.
To allow flexibility we might want to take the input from the user. In Python, we have the input() function to allow this. The syntax for input() is
Comments
Post a Comment