mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 15:16:33 -08:00
formatting logic updated
This commit is contained in:
@@ -52,13 +52,12 @@ def calendar(weekday, leap_year):
|
||||
if d2 > months_days[n]:
|
||||
break
|
||||
|
||||
if d2 > 0:
|
||||
if d2 < 10:
|
||||
if d2 <= 0:
|
||||
print("{}".format(' '), end=' ')
|
||||
elif d2 < 10:
|
||||
print(" {}".format(d2), end=' ')
|
||||
else:
|
||||
print("{}".format(d2), end=' ')
|
||||
else:
|
||||
print("{}".format(' '), end=' ')
|
||||
|
||||
if d2 >= months_days[n]:
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user