988 Posted Topics

Member Avatar for rickymohanty

You can use Tkinter that comes with the Python installation: [code]# using Tkinter's Optionmenu() as a combobox try: # Python2 import Tkinter as tk except ImportError: # Python3 import tkinter as tk def select(): sf = "value is %s" % var.get() root.title(sf) # optional color = var.get() root['bg'] = color …

Member Avatar for Stefano Mtangoo
0
29K
Member Avatar for A.D.M.I.N

Like Tony recommends: [code]def ten_times(n): print(n*10) x = int(input("How many repeats (enter an integer value): ")) for n in range(x): ten_times(n+1) [/code]

Member Avatar for Ene Uran
0
87
Member Avatar for shurshot

Pygame uses (red, green, blue) tuples for colors. The values of the red, green, blue variables are integers between 0 and 255. So color_red = (255, 0, 0) color_blue = (0, 0, 255) and values between, just experiment a little.

Member Avatar for Ene Uran
0
3K
Member Avatar for adkool

The last update of MS IE did me in, after it fooled around with my 'favorite folders'. I am now a very happy Firefox user.

Member Avatar for crunchie
2
897
Member Avatar for dinilkarun
Member Avatar for JoshuaBurleson
0
167
Member Avatar for fesago90
Member Avatar for seanwalsh1984
0
576
Member Avatar for vegaseat

[QUOTE=richieking;1431668]I like one-liners but jureslak one-liner for third pseudo is not good for readability and maintainance :)[/QUOTE]I agree, also one-liners can be very slow.

Member Avatar for Skrell
1
4K
Member Avatar for vuyiswamb
Member Avatar for vuyiswamb
1
237
Member Avatar for Shanti C
Member Avatar for Ene Uran

Just a simple console blackjack game. The bread and butter code was written with lots of comments, so you can improve on it. Really, the most important part is figuring out when an ace is 11 in value and when it is a 1 in value, so you don't bust.

Member Avatar for s4bb4t
1
8K
Member Avatar for sneekula
Member Avatar for hszforu

Execution speed is probably of limited interest for a beginner. Concentrate on learning the basics of Python rather thoroughly. Any program that has display updates and disk access in it, is limited a lot by those operations anyway! Either Python 2.6 or Python 2.7 will do fine for you. Why …

Member Avatar for hszforu
0
194
Member Avatar for TrustyTony
Member Avatar for jarograv
Member Avatar for Salem
Member Avatar for katrien202
Member Avatar for mrnutty

[url]http://www.infidels.org/library/modern/jim_meritt/bible-contradictions.html[/url] Very interesting, AD!

Member Avatar for iamthwee
2
1K
Member Avatar for WolfShield

The problem with the public school system in the US is that it has to teach to the least common denominator. In other words, students that don't want to be taught. I like to hike in the mountains, take pictures with my camera, and do some hand drawn sketches.

Member Avatar for jwmollman
0
209
Member Avatar for jingda

I used to collect Tonka sports cars when I was little. The Matchbox ones are okay too.

Member Avatar for Lardmeister
0
373
Member Avatar for markfw

Maybe something like this will help: [url]http://www.daniweb.com/software-development/python/threads/191210/1246492#post1246492[/url]

Member Avatar for Gribouillis
0
123
Member Avatar for dustbunny000

I don't think there is much difference. However the version from Python.org is usually the most update version. ActivePython has the better installer for Linux.

Member Avatar for Ene Uran
0
101
Member Avatar for jonhylever

We had a crumpy old tool and die maker who lived on our street. He called himself [B]Die[/B], and yes I was afraid of [B]Die[/B].

Member Avatar for Ene Uran
-2
359
Member Avatar for vegaseat
Member Avatar for jum2011

Maybe a look at [url]http://docs.python.org/library/turtle.html[/url] will give you the hints you need

Member Avatar for vegaseat
0
266
Member Avatar for JhonMoney
Member Avatar for Dean_Grobler
Member Avatar for Lardmeister
0
203
Member Avatar for tucker001

We will not do your homework for you. Show us an effort first, if you have problems we can help.

Member Avatar for predator78
0
316
Member Avatar for jingda
Member Avatar for jingda
Member Avatar for Ene Uran
0
52
Member Avatar for skald89
Member Avatar for mrnutty
Member Avatar for crunchie
0
871
Member Avatar for royng

I see a lot of rather sick retired old folks in my line of work. I would say [B]retirement is hell[/B]

Member Avatar for HiHe
0
566
Member Avatar for hughesadam_87

Are you thinking along the line of a record structure? You can easily set those up with a Python class.

Member Avatar for TrustyTony
0
122
Member Avatar for e-papa

Take a quick look at: [url]http://www.daniweb.com/software-development/python/threads/191210/867414#post867414[/url]

Member Avatar for e-papa
1
882
Member Avatar for vmanes
Member Avatar for Ancient Dragon

[QUOTE=vegaseat;1462217]I remember the days when restaurants used to serve chicken liver. Now most folks throw the stuff away. Actually, I feel sorry for the mechanic that has to do the separation. :)[/QUOTE]You got that wrong, it's a mecanic, not a mechanic.

Member Avatar for bumsfeld
0
150
Member Avatar for Michael_Knight

I am ready to meet my maker, but whether my maker is prepared for the great ordeal of meeting me is another matter. Winston Churchill

Member Avatar for happygeek
0
1K
Member Avatar for vegaseat
Member Avatar for jake1496

I like: [B]Spamming for Fairfax Homes[/B] or [B]Spamming for windshield repair St Louis[/B] or [B]Spamming for dentist new york [/B] Have you no shame?

Member Avatar for davidlouis88
-8
863
Member Avatar for sneekula

Carbon is actually a fairly rare element. Elements like silicon, aluminum and iron are much more common. So yes, the robot would have a much better chance to survive once given enough intelligence. The robot could eventually reach the idea that there is no sense to waste that precious carbon …

Member Avatar for bumsfeld
2
935
Member Avatar for Ene Uran

You can download the matplotlib free from: [url]http://matplotlib.sourceforge.net/[/url] It has, amongst many other things, the module pylab that allows for high quality plotting of data. All you have to do is to feed it a list of x values and the corresponding list of y values calculated from the x …

Member Avatar for Flintstone_
2
2K
Member Avatar for tinabeana

[COLOR="Green"]Hint[/COLOR] common letter frequency orders: English --> '[COLOR="Red"]ETAOIN SHRDLU[/COLOR]'

Member Avatar for Ene Uran
0
49
Member Avatar for Dave Sinkula
Member Avatar for WaltP
10
8K
Member Avatar for christina>you
Member Avatar for Future_Dictator
0
1K
Member Avatar for G-Do
Member Avatar for winmic
Member Avatar for BestJewSinceJC

[QUOTE=BrytonTaylor;1215839]family guy and grey's anatomy[/QUOTE]You must be from Chicago is a great show.

Member Avatar for SgtMe
1
305
Member Avatar for vegaseat

When I grew up, our neighborhood was so poor, that even the rainbow came only in black and white!

Member Avatar for crunchie
0
859
Member Avatar for Ancient Dragon

I saw Gallagher on TV once, what a riot! People in the front rows had to cover with plastic, as he was hitting those water melons on stage with a big hammer.

Member Avatar for dexter737
0
164
Member Avatar for ana12

Directed at printing.host Don't you just hate signature spammers! They make the pasta you ate come right back up again! Who the heck cares about the cheap bumper stickers they peddle.

Member Avatar for dexter737
-11
325

The End.