Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

it is a way of setting up a generator class, but for your case we dont need the generator class really we just need to get a list out of it, so to set a generator we say (x for x in [*some list or any iterable object*]) and it would return a generator class but we need the list from it so we put it inside list() function, but i generally use the generator to shorten code as ill give u an example, we can write this bit of code as this:

names_list = [*some names*] 
result_list = []
for name in names_list:
        if name.startswith("t"): #to check if  a name starts with the letter t
                result_list.append(name)
print(result_list)

we can instead write all of this code as one line of code:

print( list( (name for name in [*some names*] if name.startswith("t") ) ) )

which may look abit complicated but again u would wrap ur head better around it if you look into how generators in python work, and from this i see you need to look into a lot of basic concepts in python as they really make coding in python much faster and easier (even if a bit harder to read) plus dont forget to also look into pyinstaller to transform ur code from a .py to an .exe that can run on any machine even those which dont have python like all of the projects on my profile, all of then are .exe that can run on all machines even tho every project i made is made on python.

(+1)

Thanks a ton! I’ll make sure to look into these “generator” things, as for pyinstaller, I code on a Chromebook. Which can’t run .exe files unfortunately.