You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Carrying on from the previous exercise (#40), now we will add an optional parameter to accept weights in your latest squares.py file.
With weights
Choose who in your team is writing now! (pull the code from the previous exercise into your local repository) Hint: You need to add a new remote from your team member and pull their branch
Create a new branch from the branch used in the previous exercise.
Open the file squares.py. Make sure you can run it from a terminal with some input values!
Look at the part of the file that is using argparse
Add a new argument that's optional and that can accept the weights as done previously with the numbers. The file should be runnable as
Check the auto-generated help: python squares.py --help.
Check that you can run the file with the new form, whether you put the weights or not.
Share your solution as a pull request to the average_squares repository mentioning this issue (by including the text Addresses UCL-COMP0233-22-23/RSE-Classwork#41 in the pull request description), remember to mention your team members too! (with @github_username)
The text was updated successfully, but these errors were encountered:
Carrying on from the previous exercise (#40), now we will add an optional parameter to accept weights in your latest
squares.py
file.With weights
Choose who in your team is writing now! (pull the code from the previous exercise into your local repository)
Hint: You need to add a new remote from your team member and pull their branch
Create a new branch from the branch used in the previous exercise.
Open the file
squares.py
. Make sure you can run it from a terminal with some input values!Look at the part of the file that is using
argparse
Add a new argument that's optional and that can accept the weights as done previously with the
numbers
. The file should be runnable as(where
<numbers>
and<weights>
should be replaced by the sequence of numbers and weights of your choice).argparser
arguments.python squares.py --help
.Share your solution as a pull request to the average_squares repository mentioning this issue (by including the text
Addresses UCL-COMP0233-22-23/RSE-Classwork#41
in the pull request description), remember to mention your team members too! (with@github_username
)The text was updated successfully, but these errors were encountered: