Python Articles, Tutorials & News

Regular Expressions in Python

๐™Ž๐™ฉ๐™–๐™ฎ ๐™ž๐™ฃ ๐™ฉ๐™๐™š ๐™ก๐™ค๐™ค๐™ฅ ๐™„๐™‰๐™๐™„๐™‰๐™„๐™๐™€๐™‡๐™”: https://snu.socratica.com/python Regular Expressions (regex for short) is a way to search for patterns in…

Read more »

Representing Money in Python

Pythonโ€™s float type is a natural first step to represent monetary amounts in the code. Almost all platforms map Python floats to IEEE-754 โ€œdouble precisionโ€. Doubles contain 53 bits of precision. When the machine is trying to represent the fractional part…

Read more »

CS professor is developing Python programming game

Use real Python code to automate machines, robots, drones and more: Program self-driving vehicles; crack passwords; apply machine learning for predictions; automate logistics; use image processing to guide missiles. Unlock new programming features and gai…

Read more »

The Walrus-While Python Pattern

Suppose you are reading from an unbounded data source in increments of a certain size. This is a common sort of situation; for example, reading lines from stdin. The total length of the data source is not known in advance, so the only thing to do is keep …

Read more »