Skip to content

Commit a5b9bb9

Browse files
lpozobzaczynski
andauthored
Update python-built-in-functions sample code (#762)
* Fix naming in python-built-in-functions samples - fibonacci.py: rename class Fibonaccish to Fibonacci - shapes.py: rename Square parameter length to side * Update README to match new tutorial title --------- Co-authored-by: Bartosz Zaczyński <bartosz.zaczynski@gmail.com>
1 parent aa2173d commit a5b9bb9

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Python's Built-in Functions: A Complete Exploration
1+
# Python Built-in Functions: A Complete Guide
22

3-
This folder provides the code examples for the Real Python tutorial [Python's Built-in Functions: A Complete Exploration](https://realpython.com/python-built-in-functions/).
3+
This folder provides the code examples for the Real Python tutorial [Python Built-in Functions: A Complete Guide](https://realpython.com/python-built-in-functions/).

python-built-in-functions/fibonacci.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class Fibonaccish:
1+
class Fibonacci:
22
def __init__(self, initial_value=1):
33
self._cache = [0, initial_value]
44

python-built-in-functions/shapes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ def perimeter(self):
1111

1212

1313
class Square(Rectangle):
14-
def __init__(self, length):
15-
super().__init__(length, length)
14+
def __init__(self, side):
15+
super().__init__(side, side)

0 commit comments

Comments
 (0)