codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
while 1: try: chao = raw_input("would you like to adopt a chao or get an egg? type egg/adopt ") except ValueError: continue except KeyboardInterrupt: exit() if chao.lower() not in ("egg","adopt"): continue break '''The below is exactly the same but with the §else§ parts.''' while 1: try: chao = raw_input("would you like to adopt a chao or get an egg? type egg/adopt ") except ValueError: continue except KeyboardInterrupt: exit() else: if chao.lower() not in ("egg","adopt"): continue else: break
Private
[
?
]
Run code
Submit