mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user