Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Demonstrating the horrendously evil 'comefrom' control statement, roughly
- # the opposite of 'goto' in that it transfers control at /remote/ destination
- # to the local call site.
- å
- from goto import comefrom, label
- comefrom .repeat
- name = raw_input('State your name! ')
- if name:
- print "Hello ", name, "!"
- label .repeat
- print "Terminating program."
Add Comment
Please, Sign In to add comment