Skip to content

this error on coding how to solve this #4674

@kainat480

Description

@kainat480

PS C:\Users\Hp\Documents.vscode> & 'c:\Users\Hp\AppData\Local\Programs\Python\Python313\python.exe' 'c:\Users\Hp.vscode\extensions\ms-python.debugpy-2025.5.2025031101-win32-x64\bundled\libs\debugpy\launcher' '52164' '--' 'C:\Users\Hp\Documents.vscode\bank.py'
Traceback (most recent call last):
File "c:\Users\Hp\AppData\Local\Programs\Python\Python313\Lib\runpy.py", line 198, in _run_module_as_main
return _run_code(code, main_globals, None,
"main", mod_spec)
File "c:\Users\Hp\AppData\Local\Programs\Python\Python313\Lib\runpy.py", line 88, in run_code
exec(code, run_globals)
~~~~^^^^^^^^^^^^^^^^^^^
File "c:\Users\Hp.vscode\extensions\ms-python.debugpy-2025.5.2025031101-win32-x64\bundled\libs\debugpy\launcher/../..\debugpy_main
.py", line 71, in
cli.main()
~~~~~~~~^^
File "c:\Users\Hp.vscode\extensions\ms-python.debugpy-2025.5.2025031101-win32-x64\bundled\libs\debugpy\launcher/../..\debugpy/..\debugpy\server\cli.py", line 501, in main
run()
~~~^^
File "c:\Users\Hp.vscode\extensions\ms-python.debugpy-2025.5.2025031101-win32-x64\bundled\libs\debugpy\launcher/../..\debugpy/..\debugpy\server\cli.py", line 351, in run_file
runpy.run_path(target, run_name="main")
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Users\Hp.vscode\extensions\ms-python.debugpy-2025.5.2025031101-win32-x64\bundled\libs\debugpy_vendored\pydevd_pydevd_bundle\pydevd_runp code, fname = _get_code_from_file(run_name, path_name)
y.py", line 283, in _get_code_from_file
code = compile(f.read(), fname, "exec")
File "C:\Users\Hp\Documents.vscode\bank.py", line 48
def withdraw_money():
^
IndentationError: expected an indented block after function definition on line 48
PS C:\Users\Hp\Documents.vscode> ^C
PS C:\Users\Hp\Documents.vscode>
PS C:\Users\Hp\Documents.vscode> c:; cd 'c:\Users\Hp\Documents.vscode'; & 'c:\Users\Hp\AppData\Local\Programs\Python\Python313\python.exe' 'c:\Users\Hp.vscode\extensions\ms-python.debugpy-2025.5.2025031101-win32-x64\bundled\libs\debugpy\launcher' '52240' '--' 'C:\Users\Hp\Documents.vscode\bank.py'
PS C:\Users\Hp\Documents.vscode>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions