Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import sys
- def pyver3():
- if sys.version_info < (2, 99):
- return False
- else:
- return True
- def inpc(inp2):
- if pyver3():
- return input(inp2)
- else:
- return raw_input(inp2)
- def iswindows():
- osver = os.popen("ver").read()
- if osver.find("Windows") > 0:
- return True
- else:
- return False
- def clear():
- if iswindows():
- os.system('cls')
- else:
- os.system('clear')
- def pause():
- inpc("Press any key to continue . . .")
- def start():
- clear()
- print("testing script in python 0.5 by Jousway")
- print("list of functions")
- print("1) Python Ver")
- print("2) Input Test")
- print("")
- print("0) Refresh")
- print("q) quit")
- inp = inpc("Pick function: ")
- if inp == "q":
- quit()
- elif inp == "0":
- start()
- elif inp == "2":
- ptest()
- elif inp == "1":
- pyver()
- else:
- start()
- def ptest():
- clear()
- inp = inpc("Input: ")
- if inp == "":
- print("add a value moron")
- else:
- print("Output:", inp)
- pause()
- start()
- def pyver():
- clear()
- print(sys.version)
- pause()
- start()
- start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement