same filename to write to (File C), thus
leaving only the prompt for the file to be searched (File B).
The user would be responsible for listing the search term variables
into File A prior to running the script.
Is this simple enough?
Scott
On Sat, Jan 24, 2009 at 8:43 PM, Scott Stueben wrote
I am new to programming, I intend to get an entry level job programming next
year (or a little bit longer). I am switching fields and not going to college,
but kinda "self teaching" myself through various methods. I currently
understand
concepts in programming in python up to classes (like I un
Curses is one way to go. Another is to use the PyWin32 module discussed in
this thread:
http://thread.gmane.org/gmane.comp.python.tutor/58450/focus=58454
Basically, here's a snippet of code that can get you started. This requires
that you have the PyWin32 module installed (already installed by
>
> Curses is one way to go. Another is to use the PyWin32 module discussed in
> this thread:
>
I just realized I was assuming you were on Windows. If you are on another
OS, the code I posted will obviously not work for you as it is specific to
Windows.
__
Hey doug please don't be discouraged..., and be glad you didn't start in C++
like me... talk about being discouraged...
But anyways, I just started as well. I've only been programming like 5 months.
So I understand you very much :)
Here are some of the better (more clear) tutorials I ran across
Hi, Justin, how are you?
Most of the nice people here like to see that you try before you ask for help.
So next time post some code that you have tried (and failed on) so they can see
WHERE you are going wrong or WHAT is throwing you off. I'm a beginner too, also
I am using How to Think Like a
I know that the question has long been answered (and probably due today), but I
solved it and it was great exercise for me (as I'm not in college at the moment
and I need assignments like these to gauge my skills). I'll probably build a
gui
for it tomorrow, just so I can practice at that. I wis
Hi Jeff how are you today?
Well about your question... I copy and pasted your code and it worked fine for
me. Well except for in the code bit you posted you forgot to give a guess a
value before it was referred to. So under number = 44 I just wrote guess = 0
and
it worked fine.
But perhaps
I apologize now but I'm going to be spamming the tutor list as I have just
decided to create an extremely ambitious project for someone of my level.
Anyhow, I will start with my first question.
How do I save user created information in python?
In my progam I will have users input various "attr
Hi Lezlie,
Well first off, let me admit I have no idea what checksums are (I be a noobz)
and I can not help you with that part of your program at all, but there are
lots
of people here who can. But since you are new to python, let me comment on some
of the general things I noticed in your cod
Hello, I'm trying to find out the best course of action for the next stage of
my
program.
I want to hold information on various idols. I first thought to do this with
classes, but realised that I could represent the data the same way with a
dictionary. So I am now just concentrating on diction
Hello Ankur,
Well as a beginner myself I suggest that you check out these games and modify
them or create new versions of them (with additional functionality). There are
lots of stock answers, but in general old arcade games from the 70's are great
places to start. They are simple enough and yo
Hello guys,
Since sqlite gives an error if you try to create a table that's already there,
how do I test if a table is already present?
for example in
def database(info):
import sqlite3
connection = sqlite3.connect("test.db")
cursor = connection.cursor()
if table not in test.d
From: Joel Goldstick
To: michael scott
Cc: tutor@python.org
Sent: Wed, April 6, 2011 8:30:17 AM
Subject: Re: [Tutor] (sqlite3) Testing if a table has been created.
On Tue, Apr 5, 2011 at 9:59 PM, michael scott wrote:
Hello guys,
>
>Since sqlite gi
From: Andre Engels
To: michael scott
Cc: tutor@python.org
Sent: Wed, April 6, 2011 10:19:53 AM
Subject: Re: [Tutor] (sqlite3) Testing if a table has been created.
On Wed, Apr 6, 2011 at 4:06 PM, michael scott wrote:
Is this really a python tutor question
Hi Lea, how are you today?
Well please keep in mind that nothing is "wrong" with your code, its doing
exactly what you asked it to do. But I would call your attention to your while
loop, you want to accumulate things, but may I ask exactly what are you
accumulating in your loop?
Also quite b
Hello how do you do.
Today's question has to do with the time module. I want to add a timer to my
gui.
As I was messing around with it I found a way to measure time... but I'm
positive there is a more elegant way to deal with this than what I've thrown
together.
def thing():
start =
Hello, I asked for help in another location and it solved my problem, but the
only problem is I don't fully understand the after function. Here is part of
the
code that was given to me.
def print_label_slowly(self, message):
'''Print a label one character at a time using the event
Bark
To: tutor@python.org
Sent: Mon, April 25, 2011 8:50:16 PM
Subject: Re: [Tutor] after(), how do I use it?
On 26/04/11 01:36, michael scott wrote:
> Hello, I asked for help in another location and it solved my problem, but the
>only problem is I don't fully understand the a
is it about you... that intrigues me so?
From: Wayne Werner
To: michael scott
Cc: tutor@python.org
Sent: Mon, April 25, 2011 9:15:10 PM
Subject: Re: [Tutor] after(), how do I use it?
On Mon, Apr 25, 2011 at 8:02 PM, michael scott wrote:
Here is the code i
Okay, my title might be undescriptive, let me try to explain it better. I want
to take a script I've written and make it usable by typing its name in the
terminal. Perfect example is the python interpreter. You just type in the word
python to the terminal and then the interpreter runs. I know ot
u... that intrigues me so?
From: James Reynolds
To: michael scott
Cc: tutor@python.org
Sent: Fri, May 20, 2011 1:57:57 PM
Subject: Re: [Tutor] Making a script part of the terminal
We just had a similar question yesterday.
Just make sure Python is on your PATH. CD to the dir
Thank you gentlemen so much, I believe I have all that I need to do what I wish.
What is it about you... that intrigues me so?___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/list
I want to start getting into web site development. I already know basic html
and
css, which will create a basic webpage. But my question is what exactly does
python bring to the web?
Are forums, blogs, flash sites, etc the results of web programming or can they
all be achieved with standard ht
I am a beginner so I can relate with you, although python is my first
programming language, it sounds as if you are coming from another language.
Either way, here are some sites I'll collected that have tutorials and are free.
Alan's tutorial (alan is a very active member here)
http://www.freene
Just to add a little to Alexandre's answer. You can keep most of the code the
same just add in
farmlet[0].eat()
farmlet[1].eat()
and it will be okay... kinda. Or you could rewrite it and do it another
way... I'm guessing that you are using python 3 by your print sta
On Thu, Sep 15, 2011 at 1:19 PM, Richard D. Moores wrote:
> You know, at the interactive prompt you enter some Monty Python word
> that I can't remember, and you get a small list of pithy pythonic
> advice such as "explicit is better than implicit", etc.
>
import this
You can also do...
import
On Sun, Feb 12, 2012 at 6:47 AM, Debashish Saha wrote:
> suppose i want to print 'hello world' in color blue.so what to do?
>
>
There was a similar thread awhile ago. Unfortunately the answer isn't an
easy one. It depends on what operating system you use. Here's a link to
the old thread: http:
Hello, I'm totally new to this list.
I've been learning python through codecademy.com which has een helping a
lot with it's step by step approach. I'm wondering if there are any others
like it? I've been looking at some other places that attempt to teach
python (google python course, code kata or
I'm fairly new to python having recently completed LPTHW. While randomly
reading stack overflow I've run into "lambda" but haven't seen an explanation
of what that is, how it works, etc.
Would anyone care to point me in the right direction?
atenate the results but also to no avail.
Again, any shoves in the right direction would be greatly appreciated.
Scott
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
ash = re.sub(r'[^a-z2-7]', "", hash)
return alnum_hash[:16]
Keeping in mind that although I understand this code, I did not write it, I
got it from stackoverflow.
Again any help would be great. Feel free to ask if you must know exactly
what I'm trying to do.
I&
DOC page.
I'm not sure if that changes anything as far as the impossible size of my
dataset.
Again, any input is useful.
Scott
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
every possible combination of the characters
in the variable possible, ideally coming up with a string that resembles
the TOR hidden network strings that look like this: "kpvz7ki2v5agwt35.onion"
Scott
___
Tutor maillist - Tutor@python.org
To un
Hello all, I'm just wondering how to run this block of code X amount of
times (a lot) and then store the ouput to a .txt file.
The code I've written is below.
from Crypto.PublicKey import RSA
import hashlib
m = RSA.generate(1024)
b = hashlib.sha1()
b.update(str(m))
a = b.hexdigest()
print a[:16]
7;.onion'
count += 1
repeat_a_lot()
Thanks again, Scott
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
On Sun, Sep 16, 2012 at 5:23 PM, Dave Angel wrote:
> On 09/16/2012 07:56 PM, Scurvy Scott wrote:
> > scratch that, new code is below for your perusal:
> >
> > from Crypto.PublicKey import RSA
> > import hashlib
> >
> > def repeat_a_lot():
> > co
Wow, thanks Dave, et al., for explaining things the way they did. I'm not
trying to and apologize for top posting, gmail wasn't giving me the option
of replying to all. I definitely understand what was going on and why when
you all were explaining the code portions to me.
_
I've been trying to find possible erros with input(such as NameError or
SyntaxError) to handle them with an except clause. however, I've found that
hitting enter/return while prompted without inputting creates some kind of
problem.
>>>username = raw_input("Input a username: ")
Input a username:
Didnt show up at first. Result was an eof error (using input not raw_input)
Found with interactive interpreter___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
2.7.2 on python for ios(platform is darwin)
problem reoccured
Script:
import random
username = ""
def playername():
global username
Mlist = ["name1","name2","name3"]
Flist = ["name4","name5", "name6"]
Llist = ["Lname1","Lname2","Lname3"]
username = raw_input("input your desired username:
0) using mobile yahoo mail
1) expect: raw_input to assign the variable to ""
2)No output to stderr; has a loading symbol after hitting enter without input
(tried both input and raw_input)
Doesn't affect active interpreter. Only affects the screen with the run
option.
3)
def simulation():
import
Thanks for everything. I'll keep this in mind as I continue coding.___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
Hello guys, I'm using Ubuntu 12.10 and Python 2.7 right now. I'm working on
code using the Mingus module but this question isn't specific to this
module, per se.
What I'm trying to do is to generate the fibonacci numbers up to a given N
and then do modulo 12 on each number in order to create a lis
On Tue, Jan 15, 2013 at 4:01 PM, Steven D'Aprano wrote:
> On 16/01/13 10:40, Scurvy Scott wrote:
> [...]
>
>> Anyways, the problem I'm having is I'm not really sure how to search a
>> list
>> for multiple elements and remove just those elements. Below i
>> So here I extract out of your code (untested!) a generator which produces
>> an infinite series of Fibonacci numbers, one at a time:
>>
>> def fib():
>>
>> a, b = 0, 1
>> while True:
>> yield b
>>
>> a, b = b, a+b
>>
>>
>> This is untested, I may have got it wrong.
>>
>>
this mailing list exists, thanks again.
Scott
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
On 24/01/2013 13:29, Krupkina Lesya Olegovna wrote:
Hello!
I’m newcomer to Python and I’m on documentation reading stage and trying some
of examples.
I’m using Win7 x64 OS and Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC
v.1500 64 bit (AMD64)].
I try to understand how string format expres
s on A)My stated goal of also
writing the 15-20 characters before and after myString to the new file
and
B)finding the line number and writing that to the file as well.
Any information you can give me or pointers would be awesome, thanks in advance.
I'm on Ubuntu 12.10 running LXDE an
template to improve upon.
As always, thank you guys a lot, it usually only takes a couple of
emails from y'all to get my brain working correctly.
Be safe,
Scott
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
h
rgv[3]
ETC ETC CODE HERE
Is this correct/pythonic? Is there a more recommended way? Am I retarded?
Thanks again in advance,
Scott
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/lis
it didn't make sense until I
saw it in my own code if that makes any sense.
Also appreciate the help on the "instructional" side of things.
One question related to the instruction aspect- does this make sense to you?
If len(sys.argv) == 0:
print "usage: etc etc etc"
N
argv[1]
infile = sys.argv[2]
outfile = sys.argv[3]
main(mystring, infile, outfile)
Look right to you? Looks okay to me, except maybe the three ORs in the
information line, is there a more pythonic way to accomplish that
task?
Scott
On Fri, Feb 1, 2013 at 8:31 PM, Scurvy Scott wrote:
&g
blacklisted text file and never messed with again.
This might be a bit convoluted as well and any pointers are appreciated.
Scott
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
idance would be helpful.
I'm running Debian and Python 2.7
Scott
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
Python 2.4
self-study with Python Programming: An Introduction to Computer Science by Zelle
I am trying to import a program that has a conditional execution statement at
the end so I can troubleshoot individual modules in the main() program.
Below is the textbook example program. When I try t
t balance from my mining pool in my terminal.
I've tested the code in the regular python interpreter and it all executes
the way it should. But when I attempt to run it using "python whatever.py"
it doesn't give me any output. Any tips would be appreciated. Thanks.
scott
_
ction with the username/password
stuff hardcoded to see if the rest of the scraper would run, it still never
output to stdout.
Any help would be appreciated.
Also, as an aside, is there a terminal/command line parsing library someone
could recommend? I've been looking at optparse but mayb
is it? There is no explanation as
to what it does or what I'd do with it!
--dogehouse.org is a dogecoin mining pool that allows users to pool CPU/GPU
resources to make mining cryptocurrency more efficient.
Scurvy Scott: There's nothing really special about printing stuff, so
there'
Hi
Are there any recommendations for python ide's
currently I am using idle, which seems pretty decent but am open to any
suggestions
cheers
I personally prefer the Linux interpreter. Since you're asking.
Scott
On Sun, Feb 2, 2014 at 10:43 AM, Asokan Pichai wrote:
>
>
&
Hello, i am working on a project for learning python and I’m stuck. The
directions are confusing me. Please keep in mind I’m very new to this. The
directions are long so I’ll just add the paragraphs I’m confused about and my
code if someone could help me out I’d greatly appreciate it! Also,
> On Mar 8, 2014, at 6:36 AM, Dave Angel wrote:
>
> Mark Lawrence Wrote in message:
>>> On 08/03/2014 01:23, Scott W Dunning wrote:
>>>
>>>
>>> def print_hints(secret, guess):
>>> if guess < 1 or guess > 100:
>>
>>
> On Mar 8, 2014, at 6:26 AM, Mark Lawrence wrote:
>
>> On 08/03/2014 01:23, Scott W Dunning wrote:
>>
>> On Mar 7, 2014, at 11:02 AM, Alan Gauld wrote:
>>
>> GOT IT!! Finally! Thanks for all of your help!!
>
> If at first you don't succeed.
> On Mar 8, 2014, at 3:57 AM, spir wrote:
>
>> On 03/08/2014 10:13 AM, Alan Gauld wrote:
>>> On 08/03/14 01:23, Scott W Dunning wrote:
>>>
>>> On Mar 7, 2014, at 11:02 AM, Alan Gauld wrote:
>>>
>>> GOT IT!! Finally! Thanks for al
On Mar 11, 2014, at 1:57 AM, Alan Gauld wrote:
> OK so far, you don't need all the print statements
> but that's just a style issue. (You could just
> insert '\n' characters instead.)
You’re right, I’m actually not sure why I did it that way.
>
>> if guess < secret - 10 or guess > secret -
On Mar 10, 2014, at 11:18 PM, Dave Angel wrote:
> if guess < secret - 10 or guess > secret - 10:
>
> Think about that line. You might even want to put in a separate
> function to test what it does.
> HINT: it's wrong.
>
Got it! I realized what I was doing wrong. I needed that plus sign f
On Mar 28, 2014, at 10:36 PM, Ben Finney wrote:
>
> A good programming exercise will show an example input and the expected
> output, to give an unambiguous test case. Does the homework have that?
This is what the exercise has as examples…
"""Print the string `s`, `n` times.
Parameter
On Mar 29, 2014, at 12:47 AM, Dave Angel wrote:
>
> What are you uncertain about, assert or isinstance? Such
> statements are frequently used to make sure the function
> arguments are of the right type.
I’m not sure exactly what it’s doing. I guess I need to read up on it again.
>
>>
>>
>
On Mar 29, 2014, at 12:47 AM, Dave Angel wrote:
>
> So did your code print the string 10 times? When asking for help,
> it's useful to show what you tried, and what was expected, and
> what actually resulted.
>
> You use * to replicate the string, but that wasn't what the
> assignment aske
n. You should not have a literal 10 in
> the function.
Without out a break or placing that 10 in there I can’t think of a way to have
the while loop stop once it reaches (n). Any hints?
SCott
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
On Mar 30, 2014, at 4:29 AM, Dave Angel wrote:
>
> You're getting closer. Remember that the assignment shows your
> function being called with 10, not zero. So you should have a
> separate local variable, probably called I, which starts at
> zero, and gets incremented each time.
>
> The te
On Mar 31, 2014, at 2:01 AM, Alan Gauld wrote:
>
> Incidentally, your assignment does not appear to require
> a while loop, just iteration? If thats the case you could
> use a for loop instead and it would actually be more
> suitable. Have you covered for loops yet?
>
No, we haven’t got to fo
On Mar 31, 2014, at 1:39 AM, Mark Lawrence wrote:
>
> They say that the truth hurts, so if that's the best you can come up with, I
> suggest you give up programming :(
You’re in the TUTOR section. People in here are new to programming. I’ve only
been doing this for a couple months and I just
On Mar 31, 2014, at 5:15 AM, Dave Angel wrote:
>
> Do you know how to define and initialize a second local variable?
> Create one called i, with a value zero.
>
> You test expression will not have a literal, but compare the two
> locals. And the statement that increments will change i, not
I've been cheating: comment out the conditional statement and adjust the
indents. But, how do I make my program run with if __name__ == 'main': main()
at the end? I thought I understood the idea to run a module called directly
but not a module imported. My program isn't running, though.
Belo
, Zachary Ware wrote:
> Hi Patti,
>
> On Tue, Apr 1, 2014 at 11:07 AM, Patti Scott wrote:
>> I've been cheating: comment out the conditional statement and adjust the
>> indents. But, how do I make my program run with if __name__ == 'main':
>> main() at the en
I'm practicing with lists. I was looking for documentation on sorting with
cmp() because it isn't immediately clear to me how comparing items two at a
time can sort the entire list. Identify max or min values, yes, but not sort
the whole list. So, the Sorting HOW TO (Dalke, Hettinger) posted
This makes sense. Thanks.
No question on the specific code, I was just thinking I should show I'd done
any experimenting with the methods
Hi Patti,
My answers below, interleaved between your questions.
On Tue, Apr 22, 2014 at 04:18:38PM -0700, Patti Scott wrote:
> I'm pr
On May 1, 2014, at 5:30 AM, Steven D'Aprano wrote:
>
Awesome, thanks everyone! I understand lists a lot better now.
I have another question. I don’t understand why below would give an error?
>>> greeting = 'Hello World'
>>> greeting [len(greeting)]
__
Could someone clarify "Modularize code rather than copying and pasting?"
thanks
On Fri, 11/14/14, Albert-Jan Roskam wrote:
Subject: [Tutor] [OT] Best Practices for Scientific Computing
To: "Python Mailing List"
Date: Friday, November 14, 2014, 12:
27;ve only listened to one
episode but it sounds as though she's a teacher and he's a programmer
and they're working together to do something similar to what you're
taking on.
https://itunes.apple.com/us/podcast/teaching-python/id144580
her my students (if I had any) be less incumbered with
"verbosity" and more focussed on planning and understanding. Letting the
language work for them rather than enslaving them.
"When the only tool you have is a hammer, all of your problems start looking
like nails" is a favorit
the latter two, but there is
a reason they are generally popular. While those reasons don't meet with my
req. they may meet with his.
It is _always_ easier to engineer/re-engineer from a _good_ base of knowledge
than it is to start fresh... though an open mind is equally important.
I hope th
On 4/29/08, Marc Tompkins ([EMAIL PROTECTED]) wrote:
>On Tue, Apr 29, 2008 at 9:22 AM, Scott SA <[EMAIL PROTECTED]> wrote:
>
>>- More than one space around an assignment (or other) operator to
>> align it with another.
>>
> When the guy who invented th
using turtle for
class so I’ll post the code I have so far below. As you can see towards the
bottom I recall the functions to draw the stars, fill in color and give it
spacing. I was wondering if there was a way to cut down on all that some how?
Thanks for any help!
Scott
On Feb 23, 2014, at 1:12 AM, Scott W Dunning wrote:
> I am VERY new to python (programming too). I had a question regarding
> functions. Is there a way to call a function multiple times without
> recalling it over and over. Meaning is there a way I can call a function and
> th
On Feb 23, 2014, at 5:31 AM, Dave Angel wrote:
>
> Welcome to the tutor forum also, Scott. You'll find it works very
> similarly to python-list, and has many of the same people on it.
> I'm not sure how you tried to attach source, but please be aware
> that this
nd corner?
Thanks again!
Scott
from turtle import *
from math import sin, sqrt, radians
def star(width):
R = (width)/(2*sin(radians(72)))
A = (2*width)/(3+sqrt(5))
penup()
left(18)
penup()
forward(R)
pendown()
left(162)
forward(A)
right(72)
f
On Feb 23, 2014, at 2:26 AM, Peter Otten <__pete...@web.de> wrote:
> If you want to make rows with more or less stars, or stars in other colors
> you could add parameters:
>
> def star_row(numstars, starcolor):
>for i in range(numstars):
>fillstar(starcolor)
>space(25)
>
> Y
On Feb 23, 2014, at 2:26 AM, Peter Otten <__pete...@web.de> wrote:
> which still shows a repetetive pattern and thus you can simplify it with
> another loop. You should be able to find a way to write that loop with two
> star_row() calls on a single iteration, but can you do it with a single call
Hello, i am working on a project for learning python and I’m stuck. The
directions are confusing me. Please keep in mind I’m very ne to this. The
directions are long so I’ll just add the paragraphs I’m confused about and my
code if someone could help me out I’d greatly appreciate it! Also, w
On Mar 1, 2014, at 12:47 AM, Ben Finney wrote:
> You've bound the name ‘current_guess’ to the user's input, but then do
> nothing with it for the rest of the function; it will be discarded
> without being used.
Hmm, I’m not quite sure I understand. I got somewhat confused because the
direction
On Mar 1, 2014, at 8:57 AM, Mark Lawrence wrote:
> On 01/03/2014 06:05, Scott Dunning wrote:
>
> In addition to the answers you've already had, I suggest that you learn to
> run code at the interactive prompt, it's a great way of seeing precisely what
> snippets o
On Mar 1, 2014, at 6:53 AM, spir wrote:
>
> I find directions very confusing. Also, they completely control you while
> explaining about nothing, like a user manual saying "press this, turn that".
> This is inappropriate for programming (and anything else): you need to
> understand! You need
On Mar 2, 2014, at 12:43 AM, Ben Finney wrote:
>
> No, that's the opposite direction :-) Inside the ‘get_guess’ function
> you should use as many names as you need for the different purposes.
>
> So, you have one name ‘guess_number’ bound to the function's parameter.
> Don't bind anything else
This is what Im having trouble with now. Here are the directions I’m stuck on
and what I have so far, I’ll bold the part that’s dealing with the instructions
if anyone could help me figure out where I’m going wrong.
Thanks!
from random import randrange
randrange(1, 101)
from random import s
On Mar 3, 2014, at 1:51 AM, Ben Finney wrote:
> "Bold” assumes that markup of text will survive; that's not reliable,
> since this is a text-only medium and only the plain text will reliably
> survive to all readers.
Sorry, I didn’t realize. I’m still new to this.
>
> You're creating a prompt s
On Mar 3, 2014, at 3:27 AM, spir wrote:
>
> There are 2 user guesses here, and only 1 variable, thus 1 name. The name
> should say what (idea) the variable represents in the program; this should be
> said by the name's *meaning*. It is one of the greatest difficulties in
> programming. How wo
ax error about the indenting for this elif being wrong?
Any suggestions?
elif:
print "You're on fire!!"
Thanks again!!
Scott
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
print "Too high!"
print
elif guess < (secret - 10) or guess > (secret - 10):
print "You are cold!"
print
elif guess < (secret - 5)or guess > (secret - 5):
print "You are warmer!"
print
print "Plea
101 - 200 of 225 matches
Mail list logo