hkotsubo
Java developer.
Author of this book (in portuguese).
Studying Regex, Dates and Times, Python, Angular and TypeScript.
Posts
92%
91%
90%
88%
88%
87%
When you use the variable without any format specifier (print(f'{variable}')), internally its __str__ method is called. Considering your Test class, it already has this method: class Test: def...
posted 2y ago by hkotsubo
Answer
87%
86%
85%
85%
85%
85%
84%
84%
83%
First of all, I've added a print in your code to show the dates: if days % 7 == 0 and current_day == 1: print(f'{current_year}-{current_month:>02}-{current_day:>02}') sundays += 1 ...
posted 2y ago by hkotsubo
Answer
Reputation | 4042 | |
Number of top-level posts | 20 | |
Number of answers | 55 | |
Sum of received votes (up minus down) | 460 | |
Number of edits made | 189 |
Earned Abilities
Statistics
Posts | ||
---|---|---|
Count | 75 | |
Questions | 20 | |
Answers | 55 | |
Articles | 0 |
Votes cast | ||
---|---|---|
Count | 596 |
Flags raised | ||
---|---|---|
Count | 52 |