0
Why no output
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:
+ 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
0
your code is incomplete after july.