From 74881a607c077c00175a876b3387792daefe311c Mon Sep 17 00:00:00 2001 From: Zachary Watts Date: Sat, 18 Apr 2026 00:54:33 -0400 Subject: [PATCH] looking to the get() method some --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 7ec9b68..3719d22 100755 --- a/main.py +++ b/main.py @@ -3,7 +3,7 @@ import random class PlayerCharacter: def __init__(self, attributes={}) -> None: - # using a get() method to pull an attribute else use a default value + # using a get() method to pull an attribute else use a default value, https://python-academy.org/en/handbook/get self.strength = attributes.get('strength', roll_dice(3,6)) self.intelligence = attributes.get('intelligence', roll_dice(3,6)) self.wisdom = attributes.get('wisdom', roll_dice(3,6))