mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-21 23:00:43 -08:00
Python: Fix Flake8 issue E712 + PEP8 variable naming
This commit is contained in:
@@ -265,8 +265,7 @@ def test_weekday_calc(year, month, day):
|
||||
|
||||
basic_weekday = calculate_day_of_week(year, month, day) # Sunday = 1, Saturday = 7
|
||||
|
||||
test = ((python_weekday + 2) % 7) == (basic_weekday % 7)
|
||||
if test == False:
|
||||
if ((python_weekday + 2) % 7) != (basic_weekday % 7):
|
||||
print(f"testing yr {year} month {month} day {day}")
|
||||
print(f"python says {python_weekday}")
|
||||
print(f"BASIC says {basic_weekday}")
|
||||
|
||||
Reference in New Issue
Block a user