A worldwide community photographing and learning about wildlife
Physalis
Green ground cherry
Garden/ city
It is actually a fruit. Inside would be a small berry. I would say it is in the solanaceae family (tomato family). The common wild variety is called the ground cherry. There are many species, so I have only suggested a genus. The link for the genus may help you decide what species you have seen.