Skip to content

Instantly share code, notes, and snippets.

@IdpugantiSanjay
Created September 27, 2017 05:59
Show Gist options
  • Save IdpugantiSanjay/a7369148925f3f1c2b2b0243a2f8640f to your computer and use it in GitHub Desktop.
Save IdpugantiSanjay/a7369148925f3f1c2b2b0243a2f8640f to your computer and use it in GitHub Desktop.
Life universe and everything python solution
def main():
while True:
_input = int(input())
if _input == 42:
break
else:
print(_input)
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment