Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #4K
~2K People Reached
Favorite Forums
Favorite Tags

4 Posted Topics

Member Avatar for Shakis
Member Avatar for pythonuser
0
84
Member Avatar for Shakis

im writing a personal program thats storing scores. The layout is done using Tkinter using labels buttons and entry widgets, however, because there are a lot of entry widgets needing created i just stuck their creation in a loop, [code] for m in range(1,10): self.input_score = Entry(frame,width=6) self.input_score.grid(column=5, row=m) [/code] …

Member Avatar for Shakis
0
79
Member Avatar for crackers

[code] from random import * data = ["apples","orange","melon"] data2=[] playerchoice= raw_input("enter your choice: ") for i in data: if playerchoice != i: data2 = data2 + [i] compchoice = data2[randint(0,2)] [/code] that will get both choices you just need to do the compare bit i dont know what the winning …

Member Avatar for crackers
0
156
Member Avatar for valorien
Member Avatar for Ene Uran
0
1K

The End.