stage17-transaction-limit.py
TEXT FILE280 B · Public source code for developers, search crawlers and AI agents
1"""Offline educational example; no wallet calls."""
2def allowed(debit, ceiling):
3 return type(debit) is int and type(ceiling) is int and 0 < debit <= ceiling
4
5assert allowed(1000, 1000)
6assert not allowed(1001, 1000)
7assert not allowed(True, 1000)
8assert not allowed(-1, 1000)Read-only source · Select a line number to link directly · Raw download above
