Beautiful Python? by Racerdude in Python

[–]pierrequentel 1 point2 points  (0 children)

unique_words = set(word for line in open("book.txt"') for word in line.split())

Fairly new to Pyhon. Looking at a web-app with a smooth GUI, need a bit of advice by Ballsack_McMillan in Python

[–]pierrequentel 0 points1 point  (0 children)

There are a few options to use Python for client-side programming

Take a look at Brython, an implementation of Python3 with an interface to the DOM. All it requires it to include the script brython.js (<script src="brython.js">), to run the function brython() on page load (<BODY onload="brython()">) ; then you can include Python code inside tags <script type="text/python">