Video 3: First Statements (page 5 of 6) |
The input() function pauses the execution of your program and waits for a user to enter something (>? in the Terminal). All user inputs are stored as strings by default. The "+" operator may mean different things depending on the type of object. In the first statement, the "+" is concatenating strings together. In the last statement, the "+" is performing an addition between two integers.
Reading Check: The Kentucky Derby is the oldest sports event in the US.