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?

21st Nov 2019, 10:28 PM
Leticia
Leticia - avatar
3 Answers
+ 1
You didn't print anything in the last else
21st Nov 2019, 10:30 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 1
Aymane Boukrouh [Unavailable] đŸ€ŠđŸ»â€â™€ïž thank you, I realized that after I posted the question haha. Little details matter.
21st Nov 2019, 10:32 PM
Leticia
Leticia - avatar
+ 1
👌
21st Nov 2019, 10:32 PM
Aymane Boukrouh
Aymane Boukrouh - avatar