Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Challenges

Post History

66%
+2 −0
Challenges 55 fruit salad: choose your own Kolmogorov complexity

Python 3, 319 318 bytes print('riBfig,barBbilBdewBmulBtayBabiu,bael,date,lime,lulo,neem,noni,pear,pili,plum,rimu,sloe,sorb,yuzu,bearBblueBcranBcrowBemu BhackBjuneBlimeBpineBraspBwineBwolfByew Back...

posted 2y ago by trichoplax‭  ·  edited 6mo ago by trichoplax‭

Answer
#4: Post edited by user avatar trichoplax‭ · 2024-06-08T10:50:46Z (6 months ago)
Include code that generated the answer code
  • # [Python 3], ~~319~~ 318 bytes
  • ```python
  • print('riBfig,barBbilBdewBmulBtayBabiu,bael,date,lime,lulo,neem,noni,pear,pili,plum,rimu,sloe,sorb,yuzu,bearBblueBcranBcrowBemu BhackBjuneBlimeBpineBraspBwineBwolfByew Backee,akebi,apple,araza,cacao,caqui,carob,etrog,gấc,grape,guava,ilama,jagua,kokum,kubal,lemon,mango,melon,mundu,musho,nance'.replace('B','berry,'))
  • ```
  • [Try it online!][TIO-lmzg5d4n]
  • ---
  • *1 byte saved thanks to [msb's comment](https://codegolf.codidact.com/comments/thread/8512#comment-21966) which made me realise I was sorting the fruit by string length (which measures characters instead of bytes, making fruits with diacritics seem shorter than they really are).*
  • ---
  • This works by representing `berry,` (including the comma) as `B`. This means every fruit that ends in "berry" can effectively save 5 bytes. It turns out there are enough berries to make the 22 byte cost of `replace` worthwhile.
  • This is the 55 shortest fruits measuring length after substituting "berry," with "B". I generated the code using this code: [Try it online!][TIO-lmzftgr9]
  • ## My initial failed attempts
  • Before I found this approach I tried shortening the other two Python 3 answers, but in both cases my misguided efforts only made the code longer...
  • ### Trying to shorten [steffan153's answer](https://codegolf.codidact.com/posts/287088/287094#answer-287094)
  • I noticed that some of the fruits had diacritics, which makes them longer in bytes than they appear, so instead of just using the 55 shortest fruit by characters, I used the 55 shortest fruit after throwing away any fruit with diacritics, like gấc and açaí. However, since we've already used up all of the fruit of length 5 bytes or less, each diacritic fruit removed brings in another 6 byte fruit, so the total length of the code went up by a byte:
  • ```python
  • print('fig abiu bael date lime lulo neem noni pear pili plum rimu sloe sorb yuzu ackee akebi apple araza cacao caqui carob etrog grape guava ilama jagua kokum kubal lemon mango melon mundu musho nance ooray peach pequi pluot prune pudau rowan rukam salak salal tapia terap tilap toyon wongi almond babaco bacuri banana bignay')
  • ```
  • [Try it online!][TIO-l8r3k4fp]
  • ### Trying to shorten [Moshi's answer](https://codegolf.codidact.com/posts/287088/287095#answer-287095)
  • I thought I could save some bytes by using fewer distinct characters in the list of fruits, since all of these need to be listed in the `while` loop that extracts the data. So I repeatedly found the letter present in fewest fruits, and discarded all fruits containing that letter, stopping short of ending up with fewer than 55 fruits remaining. This left me with only 14 distinct characters, down from 16 in the original code. However, the 2 bytes this saved were overwhelmed by the fact that the new list of 55 fruits contained longer fruits, since I'd discarded some of the shorter ones, leaving the code 14 bytes longer:
  • ```python
  • from base64 import*
  • n=int.from_bytes(b85decode('5YBr@2zdh)fdaH`|L?o31mzCMMOw^}6Gp}*cGPdkWp!!fj9sk(ll2zIiI9x(m!Z#)4FT|UW1Q!@&rHc#p7PfklqbhsG`5TO^jF^L@qmX-@zKRADY>W*()(`#6^w=;IP9xHTgMq6GED;7>E#S9WNiB|2eKZ!HJ!qD(`e}qPwt+~b^KgJISyhSv!lv?ba68XFLI3{>}kf^>gaG928Ym{URfadB71USJH9{@PJ;Ya'),'big')
  • while n:print(end="ambling poetry"[n%14]);n//=14
  • ```
  • [Try it online!][TIO-l8r46k1t]
  • ---
  • In hindsight I have no idea why I thought either of my initial approaches would work.
  • [Python 3]: https://docs.python.org/3/
  • [TIO-l8r3k4fp]: https://tio.run/##HZBBdsMwCESvMru0655oJFNHFRKqLJrnXN4h3XyG1R8Y57pb/7quMUtfH7fvsoOpOBJFsXEJtLSAq6GLNHTrBUM4MYpGUm@YpTkONcFhM@H0p4O5ioBVUgHH0MiTTyIz04K/XoLTEmRN27FPDsHu/COKshE/jA3VahiqJypUmnU09t3QRN/Z@@bB4x712LPAbPJ8F8z34NsSFW1hTO@C4Rsd0x7smF7ZcFBZ/6lYHIVYElWwokTQzrA8rO9xhYZ9i88kZouRfZYYoSVS2TvP2@d1vQA "Python 3 – Try It Online"
  • [TIO-l8r46k1t]: https://tio.run/##FdDZUoJQAADQd79CZEqwxQERJQYkU1nUJNFRbCJALouyw7ig9utUz@ftxOfcjcJWWdppFFRNIwMkUfWCOErzRiVkvDB//pdv85yDDDG7bQtsIwsg9bbaTzm8sFzUtgxBv056UQsLirfpdHbUbiQf3xpbXrb2qxiC7B2V7RHfxwvRE6kTEkAbGCVGi@tyhX1A3H0qbOG4I9t7PzHdjNfbi5m2G2kTLgnWT1wxnr8OVHbVQFBEh0ntyNCiTJ2EhTNNSH44oDvsEFao1bvXv@JgvIEECUoGiA5uiXzMH35MbexIonJ2lQPkH3qmQXbXo4nYurC3va2xjsFTeFcNLsu5bVj9DrZUJIG6cLJEq0YdfaybnlNHK0fX80E1fInTvxMEhBZTMwLT90KnGkcgT8@1z/AOI75QOmw2GYwoy18 "Python 3 – Try It Online"
  • [TIO-lmzftgr9]: https://tio.run/##hVpNjuS4sd7rFEJtqhvuHMAwBngYoDe@xnjQoCSmxBRFaviT2SrDR5iNT2DDePBqFg@zm23BeOfwScZfBH8kVTdg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DgYd3T38yT@8b7vbTw7qB7n1PRHu1rmVC0Sev@qq6svT7y7ff/dB@/Ng@8btPP6Dggp5v@vhd@/Th6b/01Bob6M5Bhx8ox7sgjRw@fUW1b5xEGdHLd3nsD@3zH5/fn4Y5dVZe9tTn8O6o6O/ar470oZ3l9lHDoQfRfv5OS/Pu8zcSmXHAoDFcL//z9P79@@@/@/bb3Psn4T/B/8ib6HeT39ysMu/4Dp66/P4HVAUWy7/g7vUJmc2Ed89/fvPmX57rxDCfD8@sz4fn9@@fmvRG7uP9b7/9Bw "Python 3 – Try It Online"
  • [TIO-lmzg5d4n]: https://tio.run/##FY/LbcRQCEVbmZ1nJJRNOqAT3jNjM@Z9gk0sTz9pIt2kEgdvjg666Ar6sc2tfp5nN6nbfTDBp0yQyDCJ4sg7Flfc6EBK4hGwwkgbg0oJuDaozAVqqwKdyaCLhqkXMCkOqzaGtVmCw99RwFe1OmM2qoG2Ixe/4Ux5wZdXxqsZu4QZrR33y/amTzx4v2GsMQMtnASodw03ehNkytSCXy5Bawl4szbB9Pf7k2Ey6gyT0zeBKBWCF8UES1vi0MUTKSiXVqFQnRoU1su9jh5c5/iSaubhw7grZb4POMCQ2OyA4fE4z38 "Python 3 – Try It Online"
  • # [Python 3], ~~319~~ 318 bytes
  • ```python
  • print('riBfig,barBbilBdewBmulBtayBabiu,bael,date,lime,lulo,neem,noni,pear,pili,plum,rimu,sloe,sorb,yuzu,bearBblueBcranBcrowBemu BhackBjuneBlimeBpineBraspBwineBwolfByew Backee,akebi,apple,araza,cacao,caqui,carob,etrog,gấc,grape,guava,ilama,jagua,kokum,kubal,lemon,mango,melon,mundu,musho,nance'.replace('B','berry,'))
  • ```
  • [Try it online!][TIO-lmzg5d4n]
  • ---
  • *1 byte saved thanks to [msb's comment](https://codegolf.codidact.com/comments/thread/8512#comment-21966) which made me realise I was sorting the fruit by string length (which measures characters instead of bytes, making fruits with diacritics seem shorter than they really are).*
  • ---
  • This works by representing `berry,` (including the comma) as `B` (with no comma). This means that every fruit that ends in "berry" can effectively save 5 bytes. It turns out there are enough berries to make the 22 byte cost of `replace` worthwhile.
  • This is the 55 shortest fruits measuring length after substituting "berry," with "B". I generated the code using this code:
  • ```python
  • a = """abiu
  • açaí
  • acerola
  • achacha
  • ackee
  • afghan cherry
  • african baobab fruit
  • african cherry orange
  • african custard-apple
  • african locust bean
  • african mango
  • african mangosteen
  • african oil palm fruit
  • african peach
  • aguasiqui
  • akebi
  • alaskan bunchberry
  • allegheny plum
  • almond
  • almond-leaved pear
  • amanatsu
  • amazon grape
  • ambarella
  • american beautyberry
  • american black elderberry
  • american mayapple
  • american oil palm fruit
  • american persimmon
  • american plum
  • american red elderberry
  • american red raspberry
  • angular sea-fig
  • annonilla
  • apple
  • apple berry
  • apricot
  • apricot plum
  • apricot-leaved pear
  • arabian coffee
  • arabian wild almond
  • araticum-cagão
  • aratincum do para
  • araza
  • arctic raspberry
  • armenian blackberry
  • asam gelugur
  • asam kelubi
  • asian pear
  • atemoya
  • atherton raspberry
  • australian baobab fruit
  • avocado
  • babaco
  • bacuri
  • bael
  • bailan melon
  • bajoura citron
  • balatá
  • balloon berry
  • bambangan
  • banana
  • banana melon
  • banana passionfruit
  • banana yucca
  • barberry
  • beach plum
  • beach strawberry
  • beach sugar apple
  • bear's plum
  • bearberry
  • bell apple
  • bemange
  • bengal currant
  • bergamot orange
  • bignay
  • bilberry
  • bilberry cactus fruit
  • bilimbi
  • binjai
  • birchleaf pear
  • bird cherry
  • biribá
  • bitter orange
  • black apple
  • black cherry
  • black currant
  • black mulberry
  • black plum
  • black raspberry
  • black sapote
  • blackberry
  • blackcurrant
  • blood lime
  • blood orange
  • blue guarri
  • blue passionfruit
  • blue sweet calabash
  • blue tongue
  • blueberry
  • bokhara plum
  • bolivian mountain coconut
  • bolwarra
  • bombona
  • boquila
  • borojó
  • boysenberry
  • brazil cherry
  • brazilian guava
  • breadfruit
  • breadnut
  • briançon apricot
  • brush cherry
  • buddha's hand
  • buffalo-thorn
  • burahol
  • burdekin plum
  • burmese grape
  • bush butter fruit
  • bushveld bluebush
  • button mangosteen
  • cacao
  • cactus pear
  • cainito
  • calabur fruit
  • calamondin
  • california blackberry
  • callery pear
  • calva crabapple
  • cam sành
  • cambuci
  • camu camu
  • canadian bunchberry
  • canadian serviceberry
  • canary melon
  • canistel
  • cantaloupe
  • cape gooseberry
  • caqui
  • cardón fruit
  • carob
  • cashew apple
  • casimiroa
  • cassabanana
  • cattley guava
  • caviar lime
  • cawesh
  • cedar bay cherry
  • cempedak
  • centennial variegated kumquat
  • cerrado pear
  • ceylon gooseberry
  • changunga
  • chaplaish
  • charichuelo
  • cherimoya
  • cherry
  • cherry elaeagnus
  • cherry laurel
  • cherry of the rio grande
  • cherry plum
  • chickasaw plum
  • chico fruit
  • chilean guava
  • chinese bramble berry
  • chinese bush cherry
  • chinese crab apple
  • chinese date
  • chinese flowering apple
  • chinese pearleaf crabapple
  • chinese plum
  • chinese quince
  • chinese serviceberry
  • chinese sour cherry
  • chinese white pear
  • chocolate vine fruit
  • choke cherry
  • chokeberry
  • citron
  • citron melon
  • clementine
  • cloudberry
  • clove cherry
  • cluster fig
  • coarse dodder-laurel fruit
  • coastal serviceberry
  • cocky apple
  • coco de mer
  • coconut
  • cocoplum
  • coffeeberry
  • cone cherry
  • conkerberry
  • copperleaf snowberry
  • cornelian cherry
  • corozo palm fruit
  • costa rican guava
  • country-almond
  • courbaril
  • crab apple
  • cranberry
  • crane melon
  • creek plum
  • creeping raspberry
  • crenshaw melon
  • crowberry
  • cudrang
  • cupuaçu
  • currant
  • curry berry
  • curuba
  • custard apple
  • cut-leaf crabapple
  • cutleaf evergreen blackberry
  • cyclamin cherry
  • damson
  • darvaz plum
  • darwin's barberry
  • date
  • date-plum
  • david's peach
  • davidson's plum
  • dawyck cherry
  • dead man's fingers
  • delicious raspberry
  • desert almond
  • desert apricot
  • desert fig
  • desert lime
  • desert peach
  • desert quandong
  • dewberry
  • dog cherry
  • doub palm fruit
  • downy serviceberry
  • dragon fruit
  • dragonfruit
  • dugdug
  • durian
  • dusky pear
  • dutchman's laudanum
  • dwarf jelly palm fruit
  • dwarf red blackberry
  • dwarf russian almond
  • dwarf yatay palm fruit
  • eastern crabapple
  • eastern mayhaw
  • eastern teaberry
  • egg fruit
  • elderberry
  • elephant apple
  • elmleaf blackberry
  • emblic
  • emu apple
  • emu berry
  • engkala
  • etrog
  • european cantaloupe
  • european crab apple
  • european dewberry
  • european dwarf cherry
  • european plum
  • european red raspberry
  • european wild pear
  • fe'i banana
  • feijoa
  • fergana peach
  • fibrous satinash
  • fig
  • finger lime
  • fingered citron
  • five-leaved bramble berry
  • flatwoods plum
  • florentine citron
  • florentine crabapple
  • flowering almond
  • fony baobab fruit
  • fox grape
  • fuji cherry
  • gấc
  • galia melon
  • gamboge
  • gandaria
  • gansu peach
  • garcinia cambogia
  • garden dewberry
  • garlic passionfruit
  • gaya melon
  • giant granadilla
  • goji berry
  • golden himalayan raspberry
  • golden kiwifruit
  • gomortega
  • gooseberry
  • grape
  • grapefruit
  • gray-leaf cherry
  • green plum
  • green sapote
  • greengage
  • grewia asiatica
  • guarana
  • guava
  • guavaberry
  • gubinge
  • gummy bear fruit
  • gympie-gympie fruit
  • hackberry
  • hairless rambutan
  • hala fruit
  • hall crabapple
  • hardy kiwi
  • haruka
  • hawaiian raspberry
  • hawthorn
  • hawthorn berry
  • himalayan bird cherry
  • hokkaido bird cherry
  • hollyleaf cherry
  • honeyberry
  • honeydew
  • honeydew melon
  • honeysuckle
  • horned melon
  • hortulan plum
  • huckleberry
  • hyuganatsu
  • ice-cream bean
  • ichang papeda
  • ilama
  • indian wild pear
  • italian plum
  • iyokan
  • jabuticaba
  • jackal food
  • jackfruit
  • jagua
  • jambolan
  • jambul
  • japanese alpine cherry
  • japanese apricot
  • japanese bird cherry
  • japanese bramble berry
  • japanese bush cherry
  • japanese cherry
  • japanese crab
  • japanese plum
  • japanese silverberry
  • jelly palm fruit
  • jentik
  • jiangsu kumquat
  • jícama
  • jícara
  • jocote
  • jostaberry
  • jujube
  • juneberry
  • juniper berry
  • kabosu
  • kaffir lime
  • kahikatea
  • kaido crab apple
  • kajari melon
  • kanpei
  • karkalla fruit
  • kawachi bankan
  • kazak pear
  • kei apple
  • keledang
  • kelsey plum
  • keluak
  • kesusu
  • key lime
  • khirni
  • king coconut
  • kinkoji unshiu
  • kinnow
  • kiwano
  • kiwano rund
  • kiwifruit
  • kiyomi
  • kobayashi mikan
  • koji orange
  • kokum
  • kola nut
  • kolkhoznitsa melon
  • korean blackberry
  • korean juneberry
  • korean melon
  • korean raspberry
  • korlan
  • kousa dogwood fruit
  • kubal
  • kumquat
  • kundong
  • kwai muk
  • lala palm
  • langsat
  • lardizabala
  • lebanese wild apple
  • lemon
  • lemon aspen fruit
  • lemon drop mangosteen
  • lemonadeberry
  • lime
  • limeberry
  • limequat
  • lingonberry
  • little gooseberry
  • loganberry
  • long-peduncled almond
  • longan
  • loquat
  • lovi-lovi
  • low juneberry
  • low serviceberry
  • lúcuma
  • lulo
  • luóhàn guǒ
  • lychee
  • magellan barberry
  • malabar plum
  • malay rose apple
  • mamey apple
  • mamey sapote
  • mamin chino
  • mammee
  • manchurian apricot
  • manchurian cherry
  • manchurian crab apple
  • mandacaru
  • mandarin orange
  • mandarine
  • mangaba
  • mango
  • mangosteen
  • mangshanyegan
  • manoao
  • maqui berry
  • maracuja bravo
  • maracuja mochila
  • maracuja redondo
  • marionberry
  • marolo
  • marula
  • massaranduba
  • mayapple
  • maypop
  • medlar
  • melogold
  • melon
  • menteng
  • mexican plum
  • meyer lemon
  • midgen berry
  • miracle fruit
  • mirza melon
  • miyama cherry
  • mock strawberry
  • molucca bramble berry
  • momordica fruit
  • monkey fruit
  • monkey jackfruit
  • monkeypod
  • monstera deliciosa
  • mora común
  • mora de castilla
  • moriche palm fruit
  • mortiño
  • mountain raspberry
  • mountain serviceberry
  • mountain snowberry
  • mountain soursop
  • mouse melon
  • mulberry
  • mundu
  • muntrie
  • murray's plum
  • muscadine
  • musho
  • musk melon
  • muskmelon
  • myrtle-leaved orange
  • mysore raspberry
  • nageia
  • nance
  • nanjing cherry
  • nannyberry
  • nantucket serviceberry
  • naranjilla
  • natal orange
  • native cherry
  • native currant
  • nectarine
  • neem
  • nepalese raspberry
  • nepali hog plum
  • new zealand passionfruit
  • niedzwetzky's apple
  • nipa palm fruit
  • nokaidō
  • noni
  • north american cantaloupe
  • nutmeg fruit
  • ōgonkan
  • ojai pixie
  • oklahoma plum
  • oleaster-leafed pear
  • olosapo
  • ooray
  • orange
  • oregon grape
  • oroblanco
  • oshima cherry
  • otaheite gooseberry
  • oval kumquat
  • pacific crabapple
  • pacific plum
  • pale serviceberry
  • papaya
  • partridgeberry
  • passionfruit
  • pawpaw
  • peach
  • peanut butter fruit
  • pear
  • peluntan
  • pennsylvania blackberry
  • pepino
  • pequi
  • perfumed passionfruit
  • persimmon
  • peruvian apple cactus fruit
  • phalsa
  • pigeon plum
  • pili
  • pillar apple
  • pin cherry
  • pineapple
  • pineberry
  • pingan
  • pink banana
  • pinkglow pineapple
  • pitanga
  • pitaya
  • pitomba
  • pitomba-da-bahia
  • plantain
  • plinia
  • plum
  • plum pine fruit
  • plumcot
  • plumleaf crab apple
  • pluot
  • plymouth pear
  • podocarpus
  • pomegranate
  • pomelo
  • pompia
  • pond apple
  • ponderosa lemon
  • poro poro
  • prairie crabapple
  • pratt's crabapple
  • prickly pear fruit
  • prumnopitys
  • prune
  • pudau
  • pulasan
  • purple apple-berry
  • purple guava
  • purple mangosteen
  • purple-flowered raspberry
  • puruí
  • queen palm fruit
  • quince
  • raisin
  • raisin tree fruit
  • rambutan
  • ramontchi
  • rangpur
  • raspberry
  • red banana passionfruit
  • red bush apple
  • red currant
  • red fruit
  • red huckleberry
  • red mulberry
  • red passionfruit
  • red salak
  • redcurrant
  • rhubarb
  • riberry
  • rimu
  • rose apple
  • rose hip
  • roseleaf bramble berry
  • round lime
  • roundleaf serviceberry
  • rowan
  • rukam
  • sabal palm fruit
  • sageretia
  • saguaro fruit
  • salak
  • salal
  • salal berry
  • salmonberry
  • sampang
  • sand cherry
  • sandpaper fig
  • sansapote
  • santa claus melon
  • santol
  • sapodilla
  • sapote
  • sargent crabapple
  • sargent's cherry
  • saskatoon
  • satsuma
  • satsuma mandarin
  • savannah cherry
  • saw palmetto fruit
  • sawtooth blackberry
  • scarlet firethorn
  • scarlet passionfruit
  • sea anemone passionfruit
  • sea buckthorn
  • sea coconut
  • sea grape
  • shangjuan
  • shine muscat
  • shipova
  • shoebutton ardisia
  • shonan gold
  • shrub apple
  • siberian apricot
  • siberian crab apple
  • sikkim crabapple
  • silver almond
  • silver buffaloberry
  • silver peanut butter fruit
  • sloe
  • small-leaved fuchsia
  • small-leaved myrtle berry
  • small-leaved tamarind
  • smooth blackberry
  • smooth davidson's plum
  • smooth serviceberry
  • smooth stone peach
  • snow pear
  • snow raspberry
  • snowy mespilus
  • solomon's plume
  • soncoya
  • sorb
  • sour cherry
  • sour fig
  • sourplum
  • soursop
  • south american sapote
  • southern crabapple
  • spanish cherry
  • spanish lime
  • spanish tamarind
  • sprite melon
  • staghorn sumac
  • star apple
  • star fruit
  • stinking passionfruit
  • stone bramble berry
  • strangler fig
  • strawberry
  • strawberry tree fruit
  • sudachi
  • sugar plum
  • sugar-apple
  • surinam cherry
  • susung-kalabaw
  • swartbas
  • sweet apple-berry
  • sweet calabash
  • sweet crabapple
  • sweet granadilla
  • sweet limetta
  • sycamore fig
  • syrian pear
  • taiwan cherry
  • taiwan crabapple
  • taiwan tangerine
  • tamaran
  • tamarillo
  • tamarind
  • tamarind-plum
  • tangelo
  • tangerine
  • tangor
  • tapia
  • tayberry
  • terap
  • terap hitam
  • terap nasi
  • terengganu cherry
  • texas almond
  • texas peach
  • texas persimmon
  • thimbleberry
  • tianshan cherry
  • tigger melon
  • tilap
  • toad tree fruit
  • toringo crabapple
  • totara
  • toyon
  • ugli fruit
  • ussurian pear
  • utah serviceberry
  • vanilla
  • velvet apple
  • velvet tamarind
  • viagra palm
  • vitis vinifera
  • volkamer lemon
  • wampee
  • water lemon
  • watermelon
  • watery rose apple
  • wax apple
  • white aspen berry
  • white bark raspberry
  • white currant
  • white fig
  • white kwai muk
  • white mulberry
  • white passionfruit
  • white sapote
  • white-stemmed bramble
  • wiegand's serviceberry
  • wild cherimoya
  • wild cherry
  • wild dilly
  • wild himalayan cherry
  • wild jack
  • wild orange
  • wild peach
  • wild strawberry
  • willow leaf cherry
  • wineberry
  • winter-flowering cherry
  • wolfberry
  • wongi
  • wood-apple
  • wooly jelly palm fruit
  • ximenia
  • yangmei
  • yantok
  • yatay palm fruit
  • yellow granadilla
  • yellow mombin
  • yellow plum
  • yew berry
  • yoshino cherry
  • youngberry
  • yunnan crabapple
  • yuzu
  • zig-zag vine fruit
  • zwetschge"""
  • all_fruits = a.split("\n")
  • berry_words = [word for word in all_fruits if word[-5:] == "berry"]
  • other_words = [word + "," for word in all_fruits if word not in berry_words]
  • shortened_berry_words = [word.replace("berry", 'B') for word in berry_words]
  • words = sorted(other_words + shortened_berry_words, key=lambda x:len(x.encode("utf-8")))[:55]
  • words_as_string = "".join(words)[:-1]
  • program = f"print('{words_as_string}'.replace('B','berry,'))"
  • print(program)
  • ```
  • [Try it online!][TIO-lmzftgr9]
  • ## My initial failed attempts
  • Before I found this approach I tried shortening the other two Python 3 answers, but in both cases my misguided efforts only made the code longer...
  • ### Trying to shorten [steffan153's answer](https://codegolf.codidact.com/posts/287088/287094#answer-287094)
  • I noticed that some of the fruits had diacritics, which makes them longer in bytes than they appear, so instead of just using the 55 shortest fruit by characters, I used the 55 shortest fruit after throwing away any fruit with diacritics, like gấc and açaí. However, since we've already used up all of the fruit of length 5 bytes or less, each diacritic fruit removed brings in another 6 byte fruit, so the total length of the code went up by a byte:
  • ```python
  • print('fig abiu bael date lime lulo neem noni pear pili plum rimu sloe sorb yuzu ackee akebi apple araza cacao caqui carob etrog grape guava ilama jagua kokum kubal lemon mango melon mundu musho nance ooray peach pequi pluot prune pudau rowan rukam salak salal tapia terap tilap toyon wongi almond babaco bacuri banana bignay')
  • ```
  • [Try it online!][TIO-l8r3k4fp]
  • ### Trying to shorten [Moshi's answer](https://codegolf.codidact.com/posts/287088/287095#answer-287095)
  • I thought I could save some bytes by using fewer distinct characters in the list of fruits, since all of these need to be listed in the `while` loop that extracts the data. So I repeatedly found the letter present in fewest fruits, and discarded all fruits containing that letter, stopping short of ending up with fewer than 55 fruits remaining. This left me with only 14 distinct characters, down from 16 in the original code. However, the 2 bytes this saved were overwhelmed by the fact that the new list of 55 fruits contained longer fruits, since I'd discarded some of the shorter ones, leaving the code 14 bytes longer:
  • ```python
  • from base64 import*
  • n=int.from_bytes(b85decode('5YBr@2zdh)fdaH`|L?o31mzCMMOw^}6Gp}*cGPdkWp!!fj9sk(ll2zIiI9x(m!Z#)4FT|UW1Q!@&rHc#p7PfklqbhsG`5TO^jF^L@qmX-@zKRADY>W*()(`#6^w=;IP9xHTgMq6GED;7>E#S9WNiB|2eKZ!HJ!qD(`e}qPwt+~b^KgJISyhSv!lv?ba68XFLI3{>}kf^>gaG928Ym{URfadB71USJH9{@PJ;Ya'),'big')
  • while n:print(end="ambling poetry"[n%14]);n//=14
  • ```
  • [Try it online!][TIO-l8r46k1t]
  • ---
  • In hindsight I have no idea why I thought either of my initial approaches would work.
  • [Python 3]: https://docs.python.org/3/
  • [TIO-l8r3k4fp]: https://tio.run/##HZBBdsMwCESvMru0655oJFNHFRKqLJrnXN4h3XyG1R8Y57pb/7quMUtfH7fvsoOpOBJFsXEJtLSAq6GLNHTrBUM4MYpGUm@YpTkONcFhM@H0p4O5ioBVUgHH0MiTTyIz04K/XoLTEmRN27FPDsHu/COKshE/jA3VahiqJypUmnU09t3QRN/Z@@bB4x712LPAbPJ8F8z34NsSFW1hTO@C4Rsd0x7smF7ZcFBZ/6lYHIVYElWwokTQzrA8rO9xhYZ9i88kZouRfZYYoSVS2TvP2@d1vQA "Python 3 – Try It Online"
  • [TIO-l8r46k1t]: https://tio.run/##FdDZ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GsMQMtnASodw03ehNkytSCXy5Bawl4szbB9Pf7k2Ey6gyT0zeBKBWCF8UES1vi0MUTKSiXVqFQnRoU1su9jh5c5/iSaubhw7grZb4POMCQ2OyA4fE4z38 "Python 3 – Try It Online"
#3: Post edited by user avatar trichoplax‭ · 2023-09-25T22:39:11Z (about 1 year ago)
Move golfing credit to immediately after the code
  • # [Python 3], ~~319~~ 318 bytes
  • ```python
  • print('riBfig,barBbilBdewBmulBtayBabiu,bael,date,lime,lulo,neem,noni,pear,pili,plum,rimu,sloe,sorb,yuzu,bearBblueBcranBcrowBemu BhackBjuneBlimeBpineBraspBwineBwolfByew Backee,akebi,apple,araza,cacao,caqui,carob,etrog,gấc,grape,guava,ilama,jagua,kokum,kubal,lemon,mango,melon,mundu,musho,nance'.replace('B','berry,'))
  • ```
  • [Try it online!][TIO-lmzg5d4n]
  • This works by representing `berry,` (including the comma) as `B`. This means every fruit that ends in "berry" can effectively save 5 bytes. It turns out there are enough berries to make the 22 byte cost of `replace` worthwhile.
  • This is the 55 shortest fruits measuring length after substituting "berry," with "B". I generated the code using this code: [Try it online!][TIO-lmzftgr9]
  • ---
  • *1 byte saved thanks to [msb's comment](https://codegolf.codidact.com/comments/thread/8512#comment-21966) which made me realise I was sorting the fruit by string length (which measures characters instead of bytes, making fruits with diacritics seem shorter than they really are).*
  • ---
  • ## My initial failed attempts
  • Before I found this approach I tried shortening the other two Python 3 answers, but in both cases my misguided efforts only made the code longer...
  • ### Trying to shorten [steffan153's answer](https://codegolf.codidact.com/posts/287088/287094#answer-287094)
  • I noticed that some of the fruits had diacritics, which makes them longer in bytes than they appear, so instead of just using the 55 shortest fruit by characters, I used the 55 shortest fruit after throwing away any fruit with diacritics, like gấc and açaí. However, since we've already used up all of the fruit of length 5 bytes or less, each diacritic fruit removed brings in another 6 byte fruit, so the total length of the code went up by a byte:
  • ```python
  • print('fig abiu bael date lime lulo neem noni pear pili plum rimu sloe sorb yuzu ackee akebi apple araza cacao caqui carob etrog grape guava ilama jagua kokum kubal lemon mango melon mundu musho nance ooray peach pequi pluot prune pudau rowan rukam salak salal tapia terap tilap toyon wongi almond babaco bacuri banana bignay')
  • ```
  • [Try it online!][TIO-l8r3k4fp]
  • ### Trying to shorten [Moshi's answer](https://codegolf.codidact.com/posts/287088/287095#answer-287095)
  • I thought I could save some bytes by using fewer distinct characters in the list of fruits, since all of these need to be listed in the `while` loop that extracts the data. So I repeatedly found the letter present in fewest fruits, and discarded all fruits containing that letter, stopping short of ending up with fewer than 55 fruits remaining. This left me with only 14 distinct characters, down from 16 in the original code. However, the 2 bytes this saved were overwhelmed by the fact that the new list of 55 fruits contained longer fruits, since I'd discarded some of the shorter ones, leaving the code 14 bytes longer:
  • ```python
  • from base64 import*
  • n=int.from_bytes(b85decode('5YBr@2zdh)fdaH`|L?o31mzCMMOw^}6Gp}*cGPdkWp!!fj9sk(ll2zIiI9x(m!Z#)4FT|UW1Q!@&rHc#p7PfklqbhsG`5TO^jF^L@qmX-@zKRADY>W*()(`#6^w=;IP9xHTgMq6GED;7>E#S9WNiB|2eKZ!HJ!qD(`e}qPwt+~b^KgJISyhSv!lv?ba68XFLI3{>}kf^>gaG928Ym{URfadB71USJH9{@PJ;Ya'),'big')
  • while n:print(end="ambling poetry"[n%14]);n//=14
  • ```
  • [Try it online!][TIO-l8r46k1t]
  • ---
  • In hindsight I have no idea why I thought either of my initial approaches would work.
  • [Python 3]: https://docs.python.org/3/
  • [TIO-l8r3k4fp]: https://tio.run/##HZBBdsMwCESvMru0655oJFNHFRKqLJrnXN4h3XyG1R8Y57pb/7quMUtfH7fvsoOpOBJFsXEJtLSAq6GLNHTrBUM4MYpGUm@YpTkONcFhM@H0p4O5ioBVUgHH0MiTTyIz04K/XoLTEmRN27FPDsHu/COKshE/jA3VahiqJypUmnU09t3QRN/Z@@bB4x712LPAbPJ8F8z34NsSFW1hTO@C4Rsd0x7smF7ZcFBZ/6lYHIVYElWwokTQzrA8rO9xhYZ9i88kZouRfZYYoSVS2TvP2@d1vQA "Python 3 – Try It Online"
  • [TIO-l8r46k1t]: https://tio.run/##FdDZUoJQAADQd79CZEqwxQERJQYkU1nUJNFRbCJALouyw7ig9utUz@ftxOfcjcJWWdppFFRNIwMkUfWCOErzRiVkvDB//pdv85yDDDG7bQtsIwsg9bbaTzm8sFzUtgxBv056UQsLirfpdHbUbiQf3xpbXrb2qxiC7B2V7RHfxwvRE6kTEkAbGCVGi@tyhX1A3H0qbOG4I9t7PzHdjNfbi5m2G2kTLgnWT1wxnr8OVHbVQFBEh0ntyNCiTJ2EhTNNSH44oDvsEFao1bvXv@JgvIEECUoGiA5uiXzMH35MbexIonJ2lQPkH3qmQXbXo4nYurC3va2xjsFTeFcNLsu5bVj9DrZUJIG6cLJEq0YdfaybnlNHK0fX80E1fInTvxMEhBZTMwLT90KnGkcgT8@1z/AOI75QOmw2GYwoy18 "Python 3 – Try It Online"
  • [TIO-lmzftgr9]: https://tio.run/##hVpNjuS4sd7rFEJtqhvuHMAwBngYoDe@xnjQoCSmxBRFaviT2SrDR5iNT2DDePBqFg@zm23BeOfwScZfBH8kVTdgVEGMCElkMBiM@ILKdQuTNX/47TfRfmyfnp5Ep2IjXv8pXn9uRC@d1QLtRP9oZykbcR0nYdp@ks5t4JzqwXbCdqJrry6qUIXpmdY6YUa5S6MPwg0Xsa56l2pL8raTwlTZgvfsmfNByv0Bq3S7Cr28GXeV0LcRYxRe/RhVI2bZ4aqFn0nVaPqpS9prLcdJmq1ddVzALtYMubloKe5yoM5cIzC4CD4S8WJNOzqxQvelE05qMtEisx2kiGHLvVehhulaqQfp3txZxJbNUCRvp1Tkq3ReLVDsIGKdC@eg69eGILkTfs1iM0YtXOuluFzVCN5Yo3gKSQ@6tvnZFT3YUNo8XmLO1nFwG1pZe72Sh2T2ofTQFps6EVQfl0svxtd/2MQbCNrBYr5OkOSFrj2eOyrsFmlUMWKWebG0o9RxjC4xMxhaYq/S8kMc5GI3dBjghAFLdugSjuaEVl@47d32YrANJKKnpo9OoZEaF6V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wFe1OmM2qoG2Ixe/4Ux5wZdXxqsZu4QZrR33y/amTzx4v2GsMQMtnASodw03ehNkytSCXy5Bawl4szbB9Pf7k2Ey6gyT0zeBKBWCF8UES1vi0MUTKSiXVqFQnRoU1su9jh5c5/iSaubhw7grZb4POMCQ2OyA4fE4z38 "Python 3 – Try It Online"
  • # [Python 3], ~~319~~ 318 bytes
  • ```python
  • print('riBfig,barBbilBdewBmulBtayBabiu,bael,date,lime,lulo,neem,noni,pear,pili,plum,rimu,sloe,sorb,yuzu,bearBblueBcranBcrowBemu BhackBjuneBlimeBpineBraspBwineBwolfByew Backee,akebi,apple,araza,cacao,caqui,carob,etrog,gấc,grape,guava,ilama,jagua,kokum,kubal,lemon,mango,melon,mundu,musho,nance'.replace('B','berry,'))
  • ```
  • [Try it online!][TIO-lmzg5d4n]
  • ---
  • *1 byte saved thanks to [msb's comment](https://codegolf.codidact.com/comments/thread/8512#comment-21966) which made me realise I was sorting the fruit by string length (which measures characters instead of bytes, making fruits with diacritics seem shorter than they really are).*
  • ---
  • This works by representing `berry,` (including the comma) as `B`. This means every fruit that ends in "berry" can effectively save 5 bytes. It turns out there are enough berries to make the 22 byte cost of `replace` worthwhile.
  • This is the 55 shortest fruits measuring length after substituting "berry," with "B". I generated the code using this code: [Try it online!][TIO-lmzftgr9]
  • ## My initial failed attempts
  • Before I found this approach I tried shortening the other two Python 3 answers, but in both cases my misguided efforts only made the code longer...
  • ### Trying to shorten [steffan153's answer](https://codegolf.codidact.com/posts/287088/287094#answer-287094)
  • I noticed that some of the fruits had diacritics, which makes them longer in bytes than they appear, so instead of just using the 55 shortest fruit by characters, I used the 55 shortest fruit after throwing away any fruit with diacritics, like gấc and açaí. However, since we've already used up all of the fruit of length 5 bytes or less, each diacritic fruit removed brings in another 6 byte fruit, so the total length of the code went up by a byte:
  • ```python
  • print('fig abiu bael date lime lulo neem noni pear pili plum rimu sloe sorb yuzu ackee akebi apple araza cacao caqui carob etrog grape guava ilama jagua kokum kubal lemon mango melon mundu musho nance ooray peach pequi pluot prune pudau rowan rukam salak salal tapia terap tilap toyon wongi almond babaco bacuri banana bignay')
  • ```
  • [Try it online!][TIO-l8r3k4fp]
  • ### Trying to shorten [Moshi's answer](https://codegolf.codidact.com/posts/287088/287095#answer-287095)
  • I thought I could save some bytes by using fewer distinct characters in the list of fruits, since all of these need to be listed in the `while` loop that extracts the data. So I repeatedly found the letter present in fewest fruits, and discarded all fruits containing that letter, stopping short of ending up with fewer than 55 fruits remaining. This left me with only 14 distinct characters, down from 16 in the original code. However, the 2 bytes this saved were overwhelmed by the fact that the new list of 55 fruits contained longer fruits, since I'd discarded some of the shorter ones, leaving the code 14 bytes longer:
  • ```python
  • from base64 import*
  • n=int.from_bytes(b85decode('5YBr@2zdh)fdaH`|L?o31mzCMMOw^}6Gp}*cGPdkWp!!fj9sk(ll2zIiI9x(m!Z#)4FT|UW1Q!@&rHc#p7PfklqbhsG`5TO^jF^L@qmX-@zKRADY>W*()(`#6^w=;IP9xHTgMq6GED;7>E#S9WNiB|2eKZ!HJ!qD(`e}qPwt+~b^KgJISyhSv!lv?ba68XFLI3{>}kf^>gaG928Ym{URfadB71USJH9{@PJ;Ya'),'big')
  • while n:print(end="ambling poetry"[n%14]);n//=14
  • ```
  • [Try it online!][TIO-l8r46k1t]
  • ---
  • In hindsight I have no idea why I thought either of my initial approaches would work.
  • [Python 3]: https://docs.python.org/3/
  • [TIO-l8r3k4fp]: https://tio.run/##HZBBdsMwCESvMru0655oJFNHFRKqLJrnXN4h3XyG1R8Y57pb/7quMUtfH7fvsoOpOBJFsXEJtLSAq6GLNHTrBUM4MYpGUm@YpTkONcFhM@H0p4O5ioBVUgHH0MiTTyIz04K/XoLTEmRN27FPDsHu/COKshE/jA3VahiqJypUmnU09t3QRN/Z@@bB4x712LPAbPJ8F8z34NsSFW1hTO@C4Rsd0x7smF7ZcFBZ/6lYHIVYElWwokTQzrA8rO9xhYZ9i88kZouRfZYYoSVS2TvP2@d1vQA "Python 3 – Try It Online"
  • [TIO-l8r46k1t]: https://tio.run/##FdDZUoJQAADQd79CZEqwxQERJQYkU1nUJNFRbCJALouyw7ig9utUz@ftxOfcjcJWWdppFFRNIwMkUfWCOErzRiVkvDB//pdv85yDDDG7bQtsIwsg9bbaTzm8sFzUtgxBv056UQsLirfpdHbUbiQf3xpbXrb2qxiC7B2V7RHfxwvRE6kTEkAbGCVGi@tyhX1A3H0qbOG4I9t7PzHdjNfbi5m2G2kTLgnWT1wxnr8OVHbVQFBEh0ntyNCiTJ2EhTNNSH44oDvsEFao1bvXv@JgvIEECUoGiA5uiXzMH35MbexIonJ2lQPkH3qmQXbXo4nYurC3va2xjsFTeFcNLsu5bVj9DrZUJIG6cLJEq0YdfaybnlNHK0fX80E1fInTvxMEhBZTMwLT90KnGkcgT8@1z/AOI75QOmw2GYwoy18 "Python 3 – Try It Online"
  • [TIO-lmzftgr9]: https://tio.run/##hVpNjuS4sd7rFEJtqhvuHMAwBngYoDe@xnjQoCSmxBRFaviT2SrDR5iNT2DDePBqFg@zm23BeOfwScZfBH8kVTdgVEGMCElkMBiM@ILKdQuTNX/47TfRfmyfnp5Ep2IjXv8pXn9uRC@d1QLtRP9oZykbcR0nYdp@ks5t4JzqwXbCdqJrry6qUIXpmdY6YUa5S6MPwg0Xsa56l2pL8raTwlTZgvfsmfNByv0Bq3S7Cr28GXeV0LcRYxRe/RhVI2bZ4aqFn0nVaPqpS9prLcdJmq1ddVzALtYMubloKe5yoM5cIzC4CD4S8WJNOzqxQvelE05qMtEisx2kiGHLvVehhulaqQfp3txZxJbNUCRvp1Tkq3ReLVDsIGKdC@eg69eGILkTfs1iM0YtXOuluFzVCN5Yo3gKSQ@6tvnZFT3YUNo8XmLO1nFwG1pZe72Sh2T2ofTQFps6EVQfl0svxtd/2MQbCNrBYr5OkOSFrj2eOyrsFmlUMWKWebG0o9RxjC4xMxhaYq/S8kMc5GI3dBjghAFLdugSjuaEVl@47d32YrANJKKnpo9OoZEaF6VpuaTGAnTiZqMTba@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e/4Ux5wZdXxqsZu4QZrR33y/amTzx4v2GsMQMtnASodw03ehNkytSCXy5Bawl4szbB9Pf7k2Ey6gyT0zeBKBWCF8UES1vi0MUTKSiXVqFQnRoU1su9jh5c5/iSaubhw7grZb4POMCQ2OyA4fE4z38 "Python 3 – Try It Online"
#2: Post edited by user avatar trichoplax‭ · 2023-09-25T22:34:11Z (about 1 year ago)
Save 1 byte thanks to msb's comment
  • # [Python 3], 319 bytes
  • ```python
  • print('riBfig,gấc,barBbilBdewBmulBtayBabiu,açaí,bael,date,lime,lulo,neem,noni,pear,pili,plum,rimu,sloe,sorb,yuzu,bearBblueBcranBcrowBemu BhackBjuneBlimeBpineBraspBwineBwolfByew Backee,akebi,apple,araza,cacao,caqui,carob,etrog,grape,guava,ilama,jagua,kokum,kubal,lemon,mango,melon,mundu,musho'.replace('B','berry,'))
  • ```
  • [Try it online!][TIO-l8r2su8j]
  • This works by representing `berry,` (including the comma) as `B`. This means every fruit that ends in "berry" can effectively save 5 bytes. It turns out there are enough berries to make the 22 byte cost of `replace` worthwhile.
  • This is the 55 shortest fruits measuring length after substituting "berry," with "B". I generated the code using this code: [Try it online!][TIO-l8r5md6s]
  • [Python 3]: https://docs.python.org/3/
  • ## My initial failed attempts
  • Before I found this approach I tried shortening the other two Python 3 answers, but in both cases my misguided efforts only made the code longer...
  • ### Trying to shorten [steffan153's answer](https://codegolf.codidact.com/posts/287088/287094#answer-287094)
  • I noticed that some of the fruits had diacritics, which makes them longer in bytes than they appear, so instead of just using the 55 shortest fruit by characters, I used the 55 shortest fruit after throwing away any fruit with diacritics, like gấc and açaí. However, since we've already used up all of the fruit of length 5 bytes or less, each diacritic fruit removed brings in another 6 byte fruit, so the total length of the code went up by a byte:
  • ```python
  • print('fig abiu bael date lime lulo neem noni pear pili plum rimu sloe sorb yuzu ackee akebi apple araza cacao caqui carob etrog grape guava ilama jagua kokum kubal lemon mango melon mundu musho nance ooray peach pequi pluot prune pudau rowan rukam salak salal tapia terap tilap toyon wongi almond babaco bacuri banana bignay')
  • ```
  • [Try it online!][TIO-l8r3k4fp]
  • ### Trying to shorten [Moshi's answer](https://codegolf.codidact.com/posts/287088/287095#answer-287095)
  • I thought I could save some bytes by using fewer distinct characters in the list of fruits, since all of these need to be listed in the `while` loop that extracts the data. So I repeatedly found the letter present in fewest fruits, and discarded all fruits containing that letter, stopping short of ending up with fewer than 55 fruits remaining. This left me with only 14 distinct characters, down from 16 in the original code. However, the 2 bytes this saved were overwhelmed by the fact that the new list of 55 fruits contained longer fruits, since I'd discarded some of the shorter ones, leaving the code 14 bytes longer:
  • ```python
  • from base64 import*
  • n=int.from_bytes(b85decode('5YBr@2zdh)fdaH`|L?o31mzCMMOw^}6Gp}*cGPdkWp!!fj9sk(ll2zIiI9x(m!Z#)4FT|UW1Q!@&rHc#p7PfklqbhsG`5TO^jF^L@qmX-@zKRADY>W*()(`#6^w=;IP9xHTgMq6GED;7>E#S9WNiB|2eKZ!HJ!qD(`e}qPwt+~b^KgJISyhSv!lv?ba68XFLI3{>}kf^>gaG928Ym{URfadB71USJH9{@PJ;Ya'),'big')
  • while n:print(end="ambling poetry"[n%14]);n//=14
  • ```
  • [Try it online!][TIO-l8r46k1t]
  • ---
  • In hindsight I have no idea why I thought either of my initial approaches would work.
  • [Python 3]: https://docs.python.org/3/
  • [TIO-l8r2su8j]: https://tio.run/##FY/NbcMwDEZXyc0JQPTSDbgJZTO2YkpUabOGs0/RUxfoNZN0Epe@PDziI/jT9nXS@n4czXJdr51lvOcRxr/frx4SGaYsOPCGxQVX2pFSdqDXN71@ImeBgVYGySXgolCZC1StGRqTQcsSJl7AcnFYRBkWtQS7Px0SnxvEGXujGtANufgFJ@pnfHhlPCdjy2FGS8PttE3ljjtvF4w2ZqCZUwZqTcKNngQ99aTBD89B0wS8msZfRo1hdPokyEKF4EFRwaxznDh7IgHhohUK1VGhsJzudfDgMmn3ZtyEer522EGX2GyH7nY7jn8 "Python 3 – Try It Online"
  • [TIO-l8r3k4fp]: https://tio.run/##HZBBdsMwCESvMru0655oJFNHFRKqLJrnXN4h3XyG1R8Y57pb/7quMUtfH7fvsoOpOBJFsXEJtLSAq6GLNHTrBUM4MYpGUm@YpTkONcFhM@H0p4O5ioBVUgHH0MiTTyIz04K/XoLTEmRN27FPDsHu/COKshE/jA3VahiqJypUmnU09t3QRN/Z@@bB4x712LPAbPJ8F8z34NsSFW1hTO@C4Rsd0x7smF7ZcFBZ/6lYHIVYElWwokTQzrA8rO9xhYZ9i88kZouRfZYYoSVS2TvP2@d1vQA "Python 3 – Try It Online"
  • [TIO-l8r46k1t]: https://tio.run/##FdDZUoJQAADQd79CZEqwxQERJQYkU1nUJNFRbCJALouyw7ig9utUz@ftxOfcjcJWWdppFFRNIwMkUfWCOErzRiVkvDB//pdv85yDDDG7bQtsIwsg9bbaTzm8sFzUtgxBv056UQsLirfpdHbUbiQf3xpbXrb2qxiC7B2V7RHfxwvRE6kTEkAbGCVGi@tyhX1A3H0qbOG4I9t7PzHdjNfbi5m2G2kTLgnWT1wxnr8OVHbVQFBEh0ntyNCiTJ2EhTNNSH44oDvsEFao1bvXv@JgvIEECUoGiA5uiXzMH35MbexIonJ2lQPkH3qmQXbXo4nYurC3va2xjsFTeFcNLsu5bVj9DrZUJIG6cLJEq0YdfaybnlNHK0fX80E1fInTvxMEhBZTMwLT90KnGkcgT8@1z/AOI75QOmw2GYwoy18 "Python 3 – Try It Online"
  • [TIO-l8r5md6s]: https://tio.run/##hVpNjuW4Dd77FEZtqhvpN0AQzCZAb3KNyaAh23q2nmXJI1nvtSvIEWaTEyQIgqxmEcxutoUg58hJJh@pH8vVDQRVsEjaliiKIj/Kb923yZrf/fqraD@2T09PolOhEa//FK8/NaKXzmqBdqJ/tLOUjbiOkzBtP0nndnBO9WA7YTvRtVcX1FaE8ZnWOmFGeUiD34QbLmJd9SHVluRtJ4UpsgXv2TPnNymPB6zS7Sr08mbcVULfRoxBePVDUI2YZYerFn4mVYPppy5qr7UcJ2n2dtVhAbtYM6Tmoq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F@Wh84dnHvPD8/v3T018I/Xx/tdf/wc "Python 3 – Try It Online"
  • # [Python 3], ~~319~~ 318 bytes
  • ```python
  • print('riBfig,barBbilBdewBmulBtayBabiu,bael,date,lime,lulo,neem,noni,pear,pili,plum,rimu,sloe,sorb,yuzu,bearBblueBcranBcrowBemu BhackBjuneBlimeBpineBraspBwineBwolfByew Backee,akebi,apple,araza,cacao,caqui,carob,etrog,gấc,grape,guava,ilama,jagua,kokum,kubal,lemon,mango,melon,mundu,musho,nance'.replace('B','berry,'))
  • ```
  • [Try it online!][TIO-lmzg5d4n]
  • This works by representing `berry,` (including the comma) as `B`. This means every fruit that ends in "berry" can effectively save 5 bytes. It turns out there are enough berries to make the 22 byte cost of `replace` worthwhile.
  • This is the 55 shortest fruits measuring length after substituting "berry," with "B". I generated the code using this code: [Try it online!][TIO-lmzftgr9]
  • ---
  • *1 byte saved thanks to [msb's comment](https://codegolf.codidact.com/comments/thread/8512#comment-21966) which made me realise I was sorting the fruit by string length (which measures characters instead of bytes, making fruits with diacritics seem shorter than they really are).*
  • ---
  • ## My initial failed attempts
  • Before I found this approach I tried shortening the other two Python 3 answers, but in both cases my misguided efforts only made the code longer...
  • ### Trying to shorten [steffan153's answer](https://codegolf.codidact.com/posts/287088/287094#answer-287094)
  • I noticed that some of the fruits had diacritics, which makes them longer in bytes than they appear, so instead of just using the 55 shortest fruit by characters, I used the 55 shortest fruit after throwing away any fruit with diacritics, like gấc and açaí. However, since we've already used up all of the fruit of length 5 bytes or less, each diacritic fruit removed brings in another 6 byte fruit, so the total length of the code went up by a byte:
  • ```python
  • print('fig abiu bael date lime lulo neem noni pear pili plum rimu sloe sorb yuzu ackee akebi apple araza cacao caqui carob etrog grape guava ilama jagua kokum kubal lemon mango melon mundu musho nance ooray peach pequi pluot prune pudau rowan rukam salak salal tapia terap tilap toyon wongi almond babaco bacuri banana bignay')
  • ```
  • [Try it online!][TIO-l8r3k4fp]
  • ### Trying to shorten [Moshi's answer](https://codegolf.codidact.com/posts/287088/287095#answer-287095)
  • I thought I could save some bytes by using fewer distinct characters in the list of fruits, since all of these need to be listed in the `while` loop that extracts the data. So I repeatedly found the letter present in fewest fruits, and discarded all fruits containing that letter, stopping short of ending up with fewer than 55 fruits remaining. This left me with only 14 distinct characters, down from 16 in the original code. However, the 2 bytes this saved were overwhelmed by the fact that the new list of 55 fruits contained longer fruits, since I'd discarded some of the shorter ones, leaving the code 14 bytes longer:
  • ```python
  • from base64 import*
  • n=int.from_bytes(b85decode('5YBr@2zdh)fdaH`|L?o31mzCMMOw^}6Gp}*cGPdkWp!!fj9sk(ll2zIiI9x(m!Z#)4FT|UW1Q!@&rHc#p7PfklqbhsG`5TO^jF^L@qmX-@zKRADY>W*()(`#6^w=;IP9xHTgMq6GED;7>E#S9WNiB|2eKZ!HJ!qD(`e}qPwt+~b^KgJISyhSv!lv?ba68XFLI3{>}kf^>gaG928Ym{URfadB71USJH9{@PJ;Ya'),'big')
  • while n:print(end="ambling poetry"[n%14]);n//=14
  • ```
  • [Try it online!][TIO-l8r46k1t]
  • ---
  • In hindsight I have no idea why I thought either of my initial approaches would work.
  • [Python 3]: https://docs.python.org/3/
  • [TIO-l8r3k4fp]: https://tio.run/##HZBBdsMwCESvMru0655oJFNHFRKqLJrnXN4h3XyG1R8Y57pb/7quMUtfH7fvsoOpOBJFsXEJtLSAq6GLNHTrBUM4MYpGUm@YpTkONcFhM@H0p4O5ioBVUgHH0MiTTyIz04K/XoLTEmRN27FPDsHu/COKshE/jA3VahiqJypUmnU09t3QRN/Z@@bB4x712LPAbPJ8F8z34NsSFW1hTO@C4Rsd0x7smF7ZcFBZ/6lYHIVYElWwokTQzrA8rO9xhYZ9i88kZouRfZYYoSVS2TvP2@d1vQA "Python 3 – Try It Online"
  • [TIO-l8r46k1t]: https://tio.run/##FdDZUoJQAADQd79CZEqwxQERJQYkU1nUJNFRbCJALouyw7ig9utUz@ftxOfcjcJWWdppFFRNIwMkUfWCOErzRiVkvDB//pdv85yDDDG7bQtsI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MCQ2OyA4fE4z38 "Python 3 – Try It Online"
#1: Initial revision by user avatar trichoplax‭ · 2022-10-02T09:51:49Z (about 2 years ago)
# [Python 3], 319 bytes

```python
print('riBfig,gấc,barBbilBdewBmulBtayBabiu,açaí,bael,date,lime,lulo,neem,noni,pear,pili,plum,rimu,sloe,sorb,yuzu,bearBblueBcranBcrowBemu BhackBjuneBlimeBpineBraspBwineBwolfByew Backee,akebi,apple,araza,cacao,caqui,carob,etrog,grape,guava,ilama,jagua,kokum,kubal,lemon,mango,melon,mundu,musho'.replace('B','berry,'))
```

[Try it online!][TIO-l8r2su8j]

This works by representing `berry,` (including the comma) as `B`. This means every fruit that ends in "berry" can effectively save 5 bytes. It turns out there are enough berries to make the 22 byte cost of `replace` worthwhile.

This is the 55 shortest fruits measuring length after substituting "berry," with "B". I generated the code using this code: [Try it online!][TIO-l8r5md6s]

[Python 3]: https://docs.python.org/3/


## My initial failed attempts
Before I found this approach I tried shortening the other two Python 3 answers, but in both cases my misguided efforts only made the code longer...

### Trying to shorten [steffan153's answer](https://codegolf.codidact.com/posts/287088/287094#answer-287094)
I noticed that some of the fruits had diacritics, which makes them longer in bytes than they appear, so instead of just using the 55 shortest fruit by characters, I used the 55 shortest fruit after throwing away any fruit with diacritics, like gấc and açaí. However, since we've already used up all of the fruit of length 5 bytes or less, each diacritic fruit removed brings in another 6 byte fruit, so the total length of the code went up by a byte:

```python
print('fig abiu bael date lime lulo neem noni pear pili plum rimu sloe sorb yuzu ackee akebi apple araza cacao caqui carob etrog grape guava ilama jagua kokum kubal lemon mango melon mundu musho nance ooray peach pequi pluot prune pudau rowan rukam salak salal tapia terap tilap toyon wongi almond babaco bacuri banana bignay')
```

[Try it online!][TIO-l8r3k4fp]

### Trying to shorten [Moshi's answer](https://codegolf.codidact.com/posts/287088/287095#answer-287095)
I thought I could save some bytes by using fewer distinct characters in the list of fruits, since all of these need to be listed in the `while` loop that extracts the data. So I repeatedly found the letter present in fewest fruits, and discarded all fruits containing that letter, stopping short of ending up with fewer than 55 fruits remaining. This left me with only 14 distinct characters, down from 16 in the original code. However, the 2 bytes this saved were overwhelmed by the fact that the new list of 55 fruits contained longer fruits, since I'd discarded some of the shorter ones, leaving the code 14 bytes longer:

```python
from base64 import*
n=int.from_bytes(b85decode('5YBr@2zdh)fdaH`|L?o31mzCMMOw^}6Gp}*cGPdkWp!!fj9sk(ll2zIiI9x(m!Z#)4FT|UW1Q!@&rHc#p7PfklqbhsG`5TO^jF^L@qmX-@zKRADY>W*()(`#6^w=;IP9xHTgMq6GED;7>E#S9WNiB|2eKZ!HJ!qD(`e}qPwt+~b^KgJISyhSv!lv?ba68XFLI3{>}kf^>gaG928Ym{URfadB71USJH9{@PJ;Ya'),'big')
while n:print(end="ambling poetry"[n%14]);n//=14
```

[Try it online!][TIO-l8r46k1t]

---

In hindsight I have no idea why I thought either of my initial approaches would work.

[Python 3]: https://docs.python.org/3/

[TIO-l8r2su8j]: https://tio.run/##FY/NbcMwDEZXyc0JQPTSDbgJZTO2YkpUabOGs0/RUxfoNZN0Epe@PDziI/jT9nXS@n4czXJdr51lvOcRxr/frx4SGaYsOPCGxQVX2pFSdqDXN71@ImeBgVYGySXgolCZC1StGRqTQcsSJl7AcnFYRBkWtQS7Px0SnxvEGXujGtANufgFJ@pnfHhlPCdjy2FGS8PttE3ljjtvF4w2ZqCZUwZqTcKNngQ99aTBD89B0wS8msZfRo1hdPokyEKF4EFRwaxznDh7IgHhohUK1VGhsJzudfDgMmn3ZtyEer522EGX2GyH7nY7jn8 "Python 3 – Try It Online"

[TIO-l8r3k4fp]: https://tio.run/##HZBBdsMwCESvMru0655oJFNHFRKqLJrnXN4h3XyG1R8Y57pb/7quMUtfH7fvsoOpOBJFsXEJtLSAq6GLNHTrBUM4MYpGUm@YpTkONcFhM@H0p4O5ioBVUgHH0MiTTyIz04K/XoLTEmRN27FPDsHu/COKshE/jA3VahiqJypUmnU09t3QRN/Z@@bB4x712LPAbPJ8F8z34NsSFW1hTO@C4Rsd0x7smF7ZcFBZ/6lYHIVYElWwokTQzrA8rO9xhYZ9i88kZouRfZYYoSVS2TvP2@d1vQA "Python 3 – Try It Online"

[TIO-l8r46k1t]: https://tio.run/##FdDZUoJQAADQd79CZEqwxQERJQYkU1nUJNFRbCJALouyw7ig9utUz@ftxOfcjcJWWdppFFRNIwMkUfWCOErzRiVkvDB//pdv85yDDDG7bQtsIwsg9bbaTzm8sFzUtgxBv056UQsLirfpdHbUbiQf3xpbXrb2qxiC7B2V7RHfxwvRE6kTEkAbGCVGi@tyhX1A3H0qbOG4I9t7PzHdjNfbi5m2G2kTLgnWT1wxnr8OVHbVQFBEh0ntyNCiTJ2EhTNNSH44oDvsEFao1bvXv@JgvIEECUoGiA5uiXzMH35MbexIonJ2lQPkH3qmQXbXo4nYurC3va2xjsFTeFcNLsu5bVj9DrZUJIG6cLJEq0YdfaybnlNHK0fX80E1fInTvxMEhBZTMwLT90KnGkcgT8@1z/AOI75QOmw2GYwoy18 "Python 3 – Try It Online"

[TIO-l8r5md6s]: https://tio.run/##hVpNjuW4Dd77FEZtqhvpN0AQzCZAb3KNyaAh23q2nmXJI1nvtSvIEWaTEyQIgqxmEcxutoUg58hJJh@pH8vVDQRVsEjaliiKIj/Kb923yZrf/fqraD@2T09PolOhEa//FK8/NaKXzmqBdqJ/tLOUjbiOkzBtP0nndnBO9WA7YTvRtVcX1FaE8ZnWOmFGeUiD34QbLmJd9SHVluRtJ4UpsgXv2TPnNymPB6zS7Sr08mbcVULfRoxBePVDUI2YZYerFn4mVYPppy5qr7UcJ2n2dtVhAbtYM6TmoqW4y4E6c43A4GLzgYgXa9rRiRW6L51wUpOJFpnsIEXY9tR7EWqYrpV6kO7NnUXsyQxZ8nZKWb5K59UCxSoR65w5B12/NgTJnfBrEpsxaOFaL8XlqkbwxhrFU4h60LVNz67owW65TeNF5mwdB7ehlbXXK3lIYh9KD222qROb6sNy6cX4@ncbeQNBO1jM1wmSvNC1x3O1wm6RRmUjJpkXSztKHcbgIjODoSX2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