Mismatched exercise requirement at part4, 3.Lists (Python programming 2026)

Open
#20 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
python

Research direction

Start by locating the part 4, 3. Lists exercise “Addition and removal” and its test, then compare the stated output requirement with the rows expected during VS Code testing. Done means the exercise description and test agree about printing after each operation, including the resulting line count.

Written by the indexing model from the issue text.

Description

In the part 4, lists, the programming exercise named "Addition and removal" has a faulty test. The description of the exercise asks us to print the list after every operation "The list is printed out in the beginning and after each operation", but during the tests performed in VS code, the code doesnt clear the tests as the number of lines (if the list is printed after every action) exceeds the required no. of rows.
example:
x=1
list=[]
while True:
y=x-2
print(f"The list is now {list}")
operation=input("a(d)d, (r)emove or e(x)it:")
if operation=="d":
list.append(x)
x+=1
# print(list) (commented out to match expected output)
elif operation=="r":
if len(list)>0:
list.pop(y)
# print(list) (commented out to match expected output)
x-=1
else:
continue
elif operation=="x":
print("Bye!")
break

Dominant language
JavaScript
Stars
77
Forks
30
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rage/programming-26

All issues in rage/programming-26

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.