Why is a cucumber fruit and banana but got seeds?

Cucumbers are actually vegetables, not fruits. However, they are often referred to as fruits in culinary settings due to their sweet taste and fleshy texture.

On the other hand, bananas are indeed classified as fruits because they develop from the flower's ovary and contain seeds. The presence of seeds is typically one of the key characteristics used to distinguish fruits from vegetables.

So, while both cucumbers and bananas have seeds, only bananas are scientifically classified as fruits.