Skip to content

Error when trying to run the first code block in lab1.ipynb under ict133 #4

Open
@KeJun11

Description

@KeJun11

When I try running the code block, I get an error that doesn't allow me to proceed

# Import some libraries to set up this assignment
from learntools.core import binder;
binder.bind(globals())
from suss.ict133.lab1 import *
print("Setup complete! You're ready to start question 1.")

An error occurs on the line from suss.ict133.lab1 import *

I get an index error at

==== File ..\venv\Lib\site-packages\suss\ict133\lab1.py:29 ===
13 # Enter the classes in order and makesure they have different names
14 # bind_exercises will convert them into ex0, ex1, ex2 for instance.
15 qvars = bind_exercises(globals(), [
16 Question1,
17 Question2,
(...)
27 var_format='q{n}',
28 )
---> 29 __all__ = list(qvars)

=== File ..\venv\Lib\site-packages\learntools\core\utils.py:74, in bind_exercises(g, exercises, start, var_format) ===
72         mpp._prob_map[letter] = prob
73  else:
74         pv = instantiate_probview(prob_cls, value_per_problem)
75         pv._order = str(qno)
76         g[varname] = pv
...
15        return
---> 16 exercise, course = path.split('/')[-1].split('.')[0], path.split('/')[-2]
17 return exercise, course

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