python

say thanks pen letter deby hudson

Get Python’s help() function stored as string just like console

Python’s help function lets you see the help message written for you by the developer. It is particularly useful in IDLE / shell to inspect modules and explore. Here is a sample shell demo >>> help(print) Help on built-in function print in module builtins: print(…) print(value, …, sep=’ ‘, end=’\n’, file=sys.stdout, flush=False) Prints the values …

Get Python’s help() function stored as string just like console Read More »

string manipulation

String Manipulation Functions: The Top 5 You Forgot To Pack

String manipulation functions, good ones are available by default in Python. Ignorance make people always re-invent. Python is powerful and … thoughtful. We were strict and choose only 5, the five best. Hope you enjoy it! What are string manipulation functions? String manipulation functions are helper functions used to manipulate strings. If you have let …

String Manipulation Functions: The Top 5 You Forgot To Pack Read More »

building an indentation lexer in python – a tutorial

scope by indentation is an alternative to curly braces and is used by languages like python and pug. it certainly is more human-friendly as experience gathered tends to produce more and more friendly syntaxes (like livecode). we’ll in this post build an indentation analyser that correctly tells us when we mixed indentation level; just like python …

building an indentation lexer in python – a tutorial Read More »

processing.py : trails using oop

in this post, we’ll explain how to add trails using an oop approach. a trail is basically objects that appear where the primary objects passed in nature, trails are made by particles of the primary object but in programming, one simple approach is to draw other shapes albeit more small the full code there is the full processing.py code : # github.com/abdur-rahmaanj class MouseTrail: …

processing.py : trails using oop Read More »