GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — code/python/debugging at main · mxochicale/code

Expand file tree

/

debugging

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

debugging

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
README.md
README.md
 
 
balances.py
balances.py
 
 

README.md

Outline

Debugging in python

Scripts

conda activate simpleVE
python balances.py 

Logs

Python 3.10.8 (main, Nov 24 2022, 14:13:03) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> 
>>> print(account_balance)
Traceback (most recent call last):
  File "<console>", line 1, in <module>
NameError: name 'account_balance' is not defined
>>> print(account_balances)
[2324, 0, 409, -2]
>>> print(balance_a)
Traceback (most recent call last):
  File "<console>", line 1, in <module>
NameError: name 'balance_a' is not defined
>>> print(bal_a)
2324
>>> print(display_bal())
balance: 2324
Account balance of 2324 is above 0.
balance: 0
Account balance of 0 is equal to 0; add funds soon.
balance: 409
Account balance of 409 is above 0.
balance: -2
Account balance of -2 is below 0; add funds now.
None
>>> quit()

References

https://www.digitalocean.com/community/tutorials/how-to-debug-python-with-an-interactive-console
https://docs.python.org/3/library/code.html

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.