Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- print (sys.platform)
- print (2 ** 100)
- raw_input( )
- # Fix Python 2.x.
- try: input = raw_input
- except NameError: pass
- print("Hi " + input("Say something: "))
- Microsoft Windows [Version 6.1.7601]
- Copyright (c) 2009 Microsoft Corporation. All rights reserved.
- C:UsersWeebleMy Python Program>_
- python myscript.py
- from six.moves import input
- try:
- import __builtin__
- input = getattr(__builtin__, 'raw_input')
- except (ImportError, AttributeError):
- pass
- # Thank you, python2-3 team, for making such a fantastic mess with
- # input/raw_input :-)
- real_raw_input = vars(__builtins__).get('raw_input',input)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement