Sowealsohaveyouknow, thislittlestatementlikethisstatementhereisprettyrepetitive s.
Soyoucouldmaybealsoincludetheprintstatementhereandthenpass a parameteroflike, whattypeofwinitwas.
Maybethatmightbe a goodidea.
And I'm notreallysurethey're, umbecauseit's a stringwherewearelikethisisgoingtoinherentlybeprettyhardcoded, butyoumightwanttodo, like, youcouldprobablydothatandthenyoutoeliminatefourlines.
Soanyway, thereisthat, umNow, whatwewanttodoisbasically, thisfunctionalsoneedstoWeneedtoknow, Isthere a winner?
Andifthereis a winner, wewanttoalsoreturnthings.
Sothisislike a youknow, thisisah, youknow, functionwithinthefunction.
Soifweleadwithonespaceandthensaidplustwospacesandthenthenumberisprobably a littlemoretwospacesplusstring, I That's a littlemoretruetowhatisgoingonhere.
Now, thenextthingisSothisisthismeasure.
Yeah, Sothat's a validwaywecouldbuildthatNow, um, ifyouwant, youcanstickwiththat.
Otherwise, youalsocouldsay, um, itcouldbelikewecouldbuildthisallin, like, oneline, soSooneoptionwehavewithstringsistojoinandweaken, Join a listcomprehension.
So I'm gonnashowyouguys, butjustknow a listcomprehension, Likeinthiscase, Um, youknow, itcouldbeLetmejustshowyou.
Um, because I thinkwehaveactuallydoneonelistcomprehensionhere, but s couldbeequalto s 01 to 3.
SothreespacesdotJoin, um, foractuallyLucyhere.
Threespaces.
Let's makeit.
Let's dothisfirstjoinandthenandthenuse a listcomprehension.
Solet's justsay, uh, String I four I inrangeofgamesizesize.