Hi! LOPEZ GARCIA DE LOMANA, ADRIAN wrote: > Hi all, > > I have a question with some code I'm writting: > > > def main(): > > if option == 1: > > function_a() > > elif option == 2: > > function_b() > > else: > > raise 'option has to be either 1 or 2' > [snip] One further note: string exceptions are being phased out. It is discouraged to use them. See http://docs.python.org/lib/module-exceptions.html http://www.python.org/peps/pep-0290.html for details. Cheers, Carl Friedrich Bolz
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4