mirror of https://github.com/python/cpython.git
parent
7713ac2ff1
commit
d3ba10f4b5
|
@ -1042,7 +1042,7 @@ Perhaps the most well-known statement type is the
|
|||
\keyword{if} statement. For example:
|
||||
|
||||
\begin{verbatim}
|
||||
>>> x = int(raw_input("Please enter a number: "))
|
||||
>>> x = int(raw_input("Please enter an integer: "))
|
||||
>>> if x < 0:
|
||||
... x = 0
|
||||
... print 'Negative changed to zero'
|
||||
|
|
Loading…
Reference in New Issue