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 you,')
On 12 August 2013 02:14, Karim Liateni kliat...@gmail.com 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
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 ) {
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)
if
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.
The
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
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
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:
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)
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
10 matches
Mail list logo