Conversation
Member
mei-li commented Oct 15, 2018
- Clean up and restructure exercises 1-4 and totally new 5 the rest moved number
- Exercises 1-5 should be ready after this PR for the solutions.
Change C to be relevant to the previous steps and move the death function to another separate task.
katyanna requested changes Oct 16, 2018
tasks/README.rst Outdated
| | ||
| Continue in your file from the previous exercise or use the solution from the previous exercise | ||
| as a base for this exercise. | ||
| A) Create a function in the begging of your file that prints and alerts of wrong input (something to substitute the answer of the else). |
Member
There was a problem hiding this comment.
need the blank lines between here also.
tasks/README.rst Outdated
| | ||
| B) When a user enters some room, print a message saying that her 2nd friend in the list is in the room. Remember: Access list elements like this, eg. friends[0], friends[1] | ||
| | ||
| C) Make this name to be chosen randomly. Import Python library random, that has functions to help with random numbers and use random.randint(a, b) function to give you a random number between a and b. eg. random.randint(1,4) will give a random number among 1, 2, 3, 4. |
Member
There was a problem hiding this comment.
maybe we could use `` to specify literal text? as in random.randint(a, b).
tasks/README.rst Outdated
| B) Use the variable in which you stored the players name to print a welcoming. | ||
| C) Customize the replies to the vampire to show the user name like in the code here. | ||
| D) Time to get creative! Ask one more question to the player and use their answer. | ||
| A) At the beginning of the program, add code to ask the name of the player and store the answer |
Member
There was a problem hiding this comment.
Because the exercises are not in a single line anymore, we should add a blank line between them, so rst doesn't understand as only one big chunk of text.
tasks/README.rst Outdated
| A) Create a function in the begging of your file that prints and alerts of wrong input (something to substitute the answer of the else). | ||
| B) Use your function where it applies. | ||
| C) Now think a bit, how would you write a dead-function using an argument called death_message? Create this function. | ||
| C) Change your function to receive an argument called `valid`. eg `def wrong_input(valid)`. Your function can |
Member
There was a problem hiding this comment.
for the literal text rst uses double crass (``), not single (`) as in md.
Member Author
| Grrr the numbering is still messed up, sometimes it is 1. 2. and sometimes A) |
gotche reviewed Oct 17, 2018
gotche reviewed Oct 17, 2018
gotche reviewed Oct 17, 2018
this is needed fot the numbering to work properly in rst
Member Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.