37
loading...
This website collects cookies to deliver better user experience
pip install
into your terminal. Unless of course you demand having absolute control over your entire codebase – in which case, maybe C++ is more your thing. pyinputplus
is a module which contains a bunch of really useful functions which ensure the user enters the data type you want, and how you want it. For example, you can make sure they enter a goddamn positive integer: pyinputplus.inputNum('Enter a positive number: ', min=1)
choices = ['McMuffin', 'Hashbrown', 'Pancakes']
pyip.inputMenu(choices, lettered=True)
pprint
) comes in. Simply give it a list and your dictionary will go from a mountain of text, to a nicely printed outline... of text. print("New largest chain " + Fore.GREEN + str(largestChain) + Style.RESET_ALL)
pyperclip.copy(x)
and x
will be copied to the users clipboard, and use x = paperclip.past()
and you'll have the users clipboard saved to x.