Hi Alan,
Thanks, very much, for your time answering my question. I ended up using
global variables for all the attributes I had to share between the
MainWindow class and the thread, and it worked. I am sure there are better
alternatives, but since it was just a couple of attributes, the code looks
On 12/08/13 01:52, Zack Hasanov wrote:
I have the following code so far:
def high_score():
high_scores = []
name = input("What is your name? ")
player_score = int(input("What is your score? "))
entry = (name, player_score)
high_scores.append(entry)
high_scores.sor
Hello,
I have an unusual problem when I try to instance a class Astrom from a set
of tools for astronomy SDSSPY. Here's the link to the project page:
http://code.google.com/p/sdsspy/
and this is the class I'm having problems instancing:
http://code.google.com/p/sdsspy/source/browse/sdsspy/astrom.p
Hello,
I am a python newbie. I am reading this book (Python Programming for the
Absolute Beginner). I am on Chapter 7, Question 2.
"Improve the Trivia Challenge game so that it maintains a high-scores list
in a file. The program should record the player's name and score. Store the
high
>But in the code there is a flaw. input() will evaluate your user input.
i.e. If you give an integer >expression it will tell the answer. And when
you provide a number it will take it as int type. See >below.
Hi,
Ignore my above statements if using Python 3. Sorry my bad. Had a doubt and
went to
Hi Dino,
On 2013-08-12 20:32, Dino Bektešević wrote:
> def __init__(self, **keys):
> from . import util
>
> self.keys=keys
> self.load()
>
> where I don't understand what **keys mean, I've only seen that as **kwargs
> meaning other key words and arguments in examples.
>def checkCave(chosenCave):
> print('You approach the cave...')
>time.sleep(2)
> print('It is dark and spooky...')
> time.sleep(2)
>print('A large dragon jumps out in front of you! He opens his jaws
and...')
>print()
> time.sleep(2)
>friendlyCave = random.randint(1, 2)
>
Dear All
I have designed a small program to control an arduino through python socket
server. The front end is the Javaquery. My HTML code is given below
$(function() {
$( "#slider" ).slider({
min: 0,
max: 180,
step: 10,
slide: function( event, ui ) {
On 12/08/13 16:20, Prasad, Ramit wrote:
A binary chop is an algorithm.
Also known as Binary search; binary chop was not a name I had
heard before either.
Maybe a UK thing.
It means chop as in Karate not as in Lamb...
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk
On 12 August 2013 02:14, Karim Liateni wrote:
> 5ÿt5ÿ6hhhyyyfrrtr
>
> eschneide...@comcast.net a écrit :
>
> >I've been learning python from the website 'inventwithpython.com', and
> I'm on a chapter that covers the following code:
>
Just a quick note - not on the algorithm itself. If you run th
On 10 Aug 2013, at 04:30, eschneide...@comcast.net wrote:
> I've been learning python from the website 'inventwithpython.com', and I'm on
> a chapter that covers the following code:
>
> import random
> import time
> def displayIntro():
> print('You are in a land full of dragons. In front of yo
11 matches
Mail list logo