well its kinda like pepino in spanish (cucumber) which also grows like that ;)
...welp, it had to happen eventually. Got it wrong because I forgot to change back from the Greek keyboard.
How do you remember it's πεπόνι and not πεπόνη? What's the difference?
If it were πεπόνη, it would be a feminine noun, so it would be η πεπόνη. Feminine nouns tend to end in -η. Neuter nouns in -ι. So, it is good to remember the nouns with their article and try to memorize gender endings. If you find that being too much, you will just have to memorize it the way it is, unfortunately. There is no difference in pronounciation or something.
You can see noun endings here