Skip to content

Conversation

sofiiako
Copy link
Contributor

No description provided.

@sofiiako sofiiako requested a review from Geravant October 24, 2022 15:01
Copy link
Contributor

@Geravant Geravant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"The test suit for this task is analyzing output in a particular order. If you add or remove print statements, it might assess your progress incorrectly. In this case, try resetting the task and keep the initial print statements in place." ... or something like that?

Write an expression that evaluates to `True` if `name` is equal to `"John"` and
he is `16` or older.

Please do not add or remove any lines from the code.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like too strict instruction.
Maybe something like "...do not add any print statements not related to the task?"

Remove Gerard's number from the phone book.
Print Jane's phone number from the `phone_book`.

Please do not add or remove any lines from the code.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, let's think of a less restrictive wording


Please complete the task in the specified order.
Please do not add or remove any lines from the code.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's think of a less restrictive wording as well

I like apples and I like bananas and I like peaches and I like grapes
```

Please do not add or remove any lines from the code.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's think of a less restrictive wording as well


Make all `animals` elephants by replacing the last two items.

Please do not add or remove any lines from the code.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's think of a less restrictive wording as well

def test_0_code_len(self):
with open("string_multiplication.py", "r") as taskfile:
lines = taskfile.readlines()
self.assertTrue(len(lines) == 3, msg="Please do not add or remove any lines from the code file.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's think of a less restrictive wording as well

def test_0_code_len(self):
with open("negative_indexing.py", "r") as taskfile:
lines = taskfile.readlines()
self.assertTrue(len(lines) == 3, msg="Please do not add or remove any lines from the code file.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's think of a less restrictive wording as well


Use slicing to get `"Python"` from the `monty_python` variable.

Please do not add or remove any lines from the code.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's think of a less restrictive wording as well

def test_0_code_len(self):
with open("slicing.py", "r") as taskfile:
lines = taskfile.readlines()
self.assertTrue(len(lines) == 6, msg="Please do not add or remove any lines from the code file.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's think of a less restrictive wording as well

def test_0_code_len(self):
with open("type_cast.py", "r") as taskfile:
lines = taskfile.readlines()
self.assertTrue(len(lines) == 10, msg="Please do not add or remove any lines from the code file.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's think of a less restrictive wording as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants