6 Topics

Member Avatar for
Member Avatar for vegaseat

This shows you how to create a flashcard like quiz game using a Python dictionary. It's up to you to explore the approach and make this a more meaningful game.

Member Avatar for Chance_1
2
7K
Member Avatar for giancan

Dear friends, sorry for my ignorance about python containers but I have the need to store (and access) 4 different values per file in folder, namely the filename (with its path) and 3 other values (string or None). When I access the database, I will need to know the 3 …

Member Avatar for ZZucker
0
320
Member Avatar for aprilcrash

Hi. I´m writing my first python program - a text adventure game. I want to have a list of possible things a dog could eat, what´s bad about them, how bad they are. So, I thought I´d do this: badfoods = [] keys = ['Food','Problem','Imminent death'] food1 = ['alcohol', 'alcohol …

Member Avatar for TrustyTony
0
288
Member Avatar for TrustyTony

Here is example how data can be summed to dictionary or you can use numpy.histogram to sum the data as weights of the categorized data.

Member Avatar for Stackheuw
2
2K
Member Avatar for sys73r

so I'm new to the language so I've trying to do a vertical bar graph as shown below without luck, so far the only thing i've managed to do is to make it horizontally like this: [CODE] *********** ******* **** ********* **** [/CODE] which i do it by for v …

Member Avatar for sys73r
0
749
Member Avatar for TrustyTony

Here is some saved interaction in command prompt. [CODE]>>> type((1,2)) <type 'tuple'> >>> (3*x for x in (4,4)) <generator object <genexpr> at 0x00E73EB8> >>> tuple(x**2 for x in range(10)) (0, 1, 4, 9, 16, 25, 36, 49, 64, 81) >>> set(x for x in range(10)) set([0, 1, 2, 3, 4, …

Member Avatar for TrustyTony
-3
707

The End.