0
why doesn't my code work???
here is my code but the thing is it doesn't work???? class weather: def _init_(self, weather, day, month): self.wheather = wheather self.day = day self.month = month weather = weather("cloudy") day = weather("Saturday") month = weather("Feburary") print(weather.wheather) please help
4 Respuestas
+ 1
Due to "wheather or weather"
0
Because you are doing it all wrong , you need to provide three values to only one constructor function .
a=weather("cloudy", "Saturday", " february")
print(a.weather)
0
But why it doesn't output anything?
0
can you give me an example please?