0
Why did my code come out as "no output"?
When Trying Myself, I inserted: year = 365 if year == 300: print ("Year equals 300") elif year == 200: print ("Year equals 200") elif year == 250: print ("Years equals 250") else: ("Year is not equal 300,200 or 100") but it came out as "no output". Why is that?
3 ответов
+ 1
You didn't print anything in the last else
+ 1
Aymane Boukrouh [Unavailable] 🤦🏻♀️ thank you, I realized that after I posted the question haha. Little details matter.
+ 1
👌