12th May 2022, 1:48 AM
Kaushik
Kaushik - avatar
3 Antworten
+ 2
Your comparison is failing because it compares whether a string equals a list. if Month == January: Change it to if Month in January:
12th May 2022, 2:06 AM
Brian
Brian - avatar
+ 1
Kaushik Here is what I think you are trying to make. It is good to practice by making your own version. But to get the bigger benefit of Python, it is also wise to explore the various modules. Then it is like standing on the shoulder of giants.😎 https://code.sololearn.com/cnDSS9Qz9Nkm/?ref=app
12th May 2022, 5:52 AM
Bob_Li
Bob_Li - avatar
0
your code is incomplete after july.
12th May 2022, 5:18 AM
Bob_Li
Bob_Li - avatar