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
Copy file name to clipboardExpand all lines: 0 General/11 Git Lab Workflow.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Git Lab Workflow
2
2
3
-
## The below is an example of workflow for creating branches for each new lab.
3
+
## Create a new branch for each new lab.
4
4
5
5
* Replace the `<new-branch-name>` items below with your appropriate formed `<studentdirectoryname-labnumber-lab-name>` branch name.
6
6
* An example `<new-branch-name>` would be `bruce-lab01-python-exercise`
@@ -68,7 +68,7 @@
68
68
69
69
1. Repeat process for new labs.
70
70
71
-
## Use the following to switch between multiple in-process lab branches.
71
+
## Switch between in-progress branches.
72
72
73
73
1. Git `add` and `commit` changes to current branch:
74
74
1.`git add -A`
@@ -88,7 +88,7 @@
88
88
89
89
1. Repeat process as needed.
90
90
91
-
## Use the following to delete branches for labs which have already been graded.
91
+
## Delete branches for labs which have already been graded.
92
92
* NOTE: We delete the branches after they have been merged into `main` since the work has been completed and all the changes have been recorded in the `commit`s. We no longer need the branches.
93
93
94
94
1. Sync our local record of remote branches. This will remove local references to branches which have been deleted on remote:
Copy file name to clipboardExpand all lines: 1 Python/labs/02 Unit Converter
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,8 @@ Lab 02: Unit Converter
2
2
This lab will involve writing a program that allows the user to convert a number between units.
3
3
4
4
Version 1
5
-
Ask the user for the number of feet, and print out the equivalent distance in meters. Hint: 1 ft is 0.3048 m. So we can get the output in meters by multiplying the input distance by 0.3048. Below is some sample input/output.
5
+
Ask the user for the number of feet, and print out the equivalent distance in meters. Hint: 1 ft is 0.3048 m. So we can get the output in meters by multiplying
6
+
the input distance by 0.3048. Below is some sample input/output.
6
7
7
8
> what is the distance in feet? 12
8
9
> 12 ft is 3.6576 m
@@ -26,16 +27,19 @@ Add support for yards, and inches.
26
27
Version 4 - optional
27
28
Now we'll ask the user for the distance, the starting units, and the units to convert to.
28
29
29
-
You can think of the values for the conversions as elements in a matrix, where the rows will be the units you're converting from, and the columns will be the units you're converting to. Along the horizontal, the values will be 1 (1 meter is 1 meter, 1 foot is 1 foot, etc).
30
+
You can think of the values for the conversions as elements in a matrix, where the rows will be the units you're converting from, and the columns will be the
31
+
units you're converting to. Along the horizontal, the values will be 1 (1 meter is 1 meter, 1 foot is 1 foot, etc).
30
32
31
33
ft mi m km
32
34
ft 1 0.3048
33
35
mi 1 1609.34
34
36
m 1/0.3048 1/1609.34 1 1/1000
35
37
km 1000 1
36
-
But instead of filling out that matrix, and checking for each pair of units (if from_units == 'mi' and to_units == 'km'), we can just convert any unit to meters, then convert the distance in meters to any other unit.
38
+
But instead of filling out that matrix, and checking for each pair of units (if from_units == 'mi' and to_units == 'km'), we can just convert any unit to meters,
39
+
then convert the distance in meters to any other unit.
37
40
38
-
Furthermore you can convert them from meters by dividing a distance (in meters) by those same values used above. So first convert from the input units to meters, then convert from meters to the output units.
41
+
Furthermore you can convert them from meters by dividing a distance (in meters) by those same values used above. So first convert from the input units to meters,
0 commit comments