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