Skip to content

Commit 7648201

Browse files
committed
DR updates, first round
1 parent 022d918 commit 7648201

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

python-doctest/calculations/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Functions to Perform Arithmetic Calculations
22

3-
The `calculations.py` Python module provides basic arithmetic operations, including sum, subtraction, multiplication, and division.
3+
The `calculations.py` Python module provides basic arithmetic operations, including addition, subtraction, multiplication, and division.
44

55
Here are a few examples of how to use the functions in `calculations.py`:
66

python-doctest/failing_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
'Hello, World!'
1010
1111
The output must not use double quotes
12-
>>> "Hello," + "World!"
12+
>>> "Hello," + " World!"
1313
"Hello, World!"
1414
1515
The output must not contain leading or trailing spaces
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
# The commented versions of fizz_buzz() below reflect the steps
1+
# The commented versions of fizzbuzz() below reflect the steps
22
# followed to get to the final version at the end of the file.
33

44
# Replace numbers that are divisible by 3 with "fizz"
5-
# def fizz_buzz(numbers):
5+
# def fizzbuzz(numbers):
66
# """Implement the Fizz buzz game.
77

8-
# >>> fizz_buzz([3, 6, 9, 12])
8+
# >>> fizzbuzz([3, 6, 9, 12])
99
# ['fizz', 'fizz', 'fizz', 'fizz']
1010
# """
1111

1212

1313
# # Replace numbers that are divisible by 3 with "fizz"
14-
# def fizz_buzz(numbers):
14+
# def fizzbuzz(numbers):
1515
# """Implement the Fizz buzz game.
1616

17-
# >>> fizz_buzz([3, 6, 9, 12])
17+
# >>> fizzbuzz([3, 6, 9, 12])
1818
# ['fizz', 'fizz', 'fizz', 'fizz']
1919
# """
2020
# result = []
@@ -27,13 +27,13 @@
2727

2828

2929
# Replace numbers that are divisible by 5 with "buzz"
30-
# def fizz_buzz(numbers):
30+
# def fizzbuzz(numbers):
3131
# """Implement the Fizz buzz game.
3232

33-
# >>> fizz_buzz([3, 6, 9, 12])
33+
# >>> fizzbuzz([3, 6, 9, 12])
3434
# ['fizz', 'fizz', 'fizz', 'fizz']
3535

36-
# >>> fizz_buzz([5, 10, 20, 25])
36+
# >>> fizzbuzz([5, 10, 20, 25])
3737
# ['buzz', 'buzz', 'buzz', 'buzz']
3838
# """
3939
# result = []
@@ -48,19 +48,19 @@
4848

4949

5050
# Replace numbers that are divisible by 3 and 5 with "fizz buzz"
51-
def fizz_buzz(numbers):
51+
def fizzbuzz(numbers):
5252
"""Implement the Fizz buzz game.
5353
54-
>>> fizz_buzz([3, 6, 9, 12])
54+
>>> fizzbuzz([3, 6, 9, 12])
5555
['fizz', 'fizz', 'fizz', 'fizz']
5656
57-
>>> fizz_buzz([5, 10, 20, 25])
57+
>>> fizzbuzz([5, 10, 20, 25])
5858
['buzz', 'buzz', 'buzz', 'buzz']
5959
60-
>>> fizz_buzz([15, 30, 45])
60+
>>> fizzbuzz([15, 30, 45])
6161
['fizz buzz', 'fizz buzz', 'fizz buzz']
6262
63-
>>> fizz_buzz([3, 6, 5, 10, 15, 30])
63+
>>> fizzbuzz([3, 6, 5, 10, 15, 30])
6464
['fizz', 'fizz', 'buzz', 'buzz', 'fizz buzz', 'fizz buzz']
6565
"""
6666
result = []

0 commit comments

Comments
 (0)