utor@python.org
>> To unsubscribe or change subscription options:
>> http://mail.python.org/mailman/listinfo/tutor
>>
>>
>
> ___
> Tutor maillist - Tutor@python.org
> To unsubscribe or change subscription
cted arduino would be written in Python.
--
Michael Connors
Leiden
The Netherlands
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
my friend and he
> said that he has the same problem...anybody?...help???
>
>
It closes because it is finished.
If you want to see the result, you could either:
- Place another input("") after the print statement.
- Run the program from the c
Back when I used Windows I used this: http://www.crimsoneditor.com/
I think its not being developed anymore, but it is a great editor/IDE that
supports many languages.
--
Michael Connors
___
Tutor maillist - Tutor@python.org
http://mail.python.org
_________
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
--
Michael Connors
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
this
to be the reason it is popular in tutorials, and if all the tutorials you
use, use nano, you will probably use it too.
--
Michael Connors
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
and values.
So you could do something like this:
records = {'US': {'2007': 22.5, '2008': 44.8}, 'UK': {'2008': 3.4, '2007':
2.6}}
You can now access a particular record as follows:
In: print records['UK']['2007']
On 25/03/2008, elis aeris <[EMAIL PROTECTED]> wrote:
>
> what if i want it only to 2nd decimal?
>
> what if i want to cut off everything behind decimal?
>
In: print "%.2f" % (0.99)
Out: 0.99
http://docs.python.org/lib/typesseq-s
___
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
I think to do float division the operands should be floats.
So if you do:
print float(a-x) / float(w)
It s
___
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
I think to do float division the operands should be floats.
So if you do:
print float(a-x) / float(w)
It s
nction as follows:
y = randrange(1,n)
Regards,
--
Michael Connors
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
is maybe:
https://launchpad.net/gasp-code
--
Michael Connors
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
be prepared to answer "Why do you want to work with Python?" and
have a clear picture of its pros and cons.
The job is probably not all about Python, so don't forget to prepare the
other areas you mentioned on your CV.
--
Michael Connors
___
ot; )
> if pinPattern.match(howmany):
> while counter < int(howmany):
> pin = randint(,)
> print pin
> counter += 1
> else:
> print "%s is not valid 4 digit integer"%howmany
>
>
> -vishnuMohan
>
--
Michael Connors
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
You could use string formatting to output all pin numbers as 4 character
strings.
http://docs.python.org/lib/typesseq-strings.html
On 07/09/2007, matte <[EMAIL PROTECTED]> wrote:
>
> Perfect...
>
> Thanks very much for your help...
>
> On 9/7/07, Michael Connors &
ing ?
>
> -m
>
> ___
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
--
Michael Connors
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
e McClintock
>
> ___
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
--
Michael Connors
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Hi,
I was following the thread on about the _("xx") thingy.
Since then I played around a bit with underscores at the console and it
seems to me that if you execute code with a return value but you dont save
the result, then _ is a pointer to this value.
Is that correct?
4
4
print _
4
So if
ely I'd have thought would be "sharp"
as in music notation, which is where, I think, it originated.
And this is really off-topic now! :-)
Alan G.
_______
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
19 matches
Mail list logo