Am 13.08.2017 um 02:12 schrieb Steven D'Aprano:
On Fri, Aug 11, 2017 at 02:35:00PM +0200, Thomas Güttler wrote:
How high is the percentage of python installation which don't have
setuptools?
I have no clue. Is it 5%, 10%, 15% ...?
I know there is no definite answer to this question. But you
On Fri, Aug 11, 2017 at 02:35:00PM +0200, Thomas Güttler wrote:
> How high is the percentage of python installation which don't have
> setuptools?
>
> I have no clue. Is it 5%, 10%, 15% ...?
>
> I know there is no definite answer to this question. But you can guess this
> better than me.
Some
On Fri, Aug 11, 2017 at 6:27 PM, Alan Gauld via Tutor wrote:
> On 11/08/17 19:13, Chris Warrick wrote:
>
>> False since Python 3.4/2.7.9. ensurepip installs Python on every new
>> Python install.
>
> Sorry Chris, that's not making sense? Do you mean ensurepip
> installs setuptools on every install
On 11/08/17 19:13, Chris Warrick wrote:
>>> a) people who just downloaded Python and never installed
>>>anything else
>
> False since Python 3.4/2.7.9. ensurepip installs Python on every new
> Python install.
Sorry Chris, that's not making sense? Do you mean ensurepip
installs setuptools on
On 11 August 2017 at 19:54, Mats Wichmann wrote:
> On 08/11/2017 09:54 AM, Alan Gauld via Tutor wrote:
>> On 11/08/17 13:35, Thomas Güttler wrote:
>>
>>> I guess most python installations have setuptools.
>>
>> I guess so too, although I don't know.
>> Those that don't are probably in one of two c
On 08/11/2017 09:54 AM, Alan Gauld via Tutor wrote:
> On 11/08/17 13:35, Thomas Güttler wrote:
>
>> I guess most python installations have setuptools.
>
> I guess so too, although I don't know.
> Those that don't are probably in one of two categories
> a) people who just downloaded Python and ne
On 11/08/17 13:35, Thomas Güttler wrote:
> I guess most python installations have setuptools.
I guess so too, although I don't know.
Those that don't are probably in one of two categories
a) people who just downloaded Python and never installed
anything else
b) people working for large parano
I start a new thread, since this is a new topic.
I don't have the deep knowledge like Chris, Steven or Alan.
I guess most python installations have setuptools. But this is only my naive
vague guess.
How high is the percentage of python installation which don't have setuptools?
I have no clue.
Johan Geldenhuys wrote:
> Hi all,
>
> What is the syntax if I want to work out what percentage 42 is out of 250?
>
42 is x percent of 250.
(is / of) = (x / 100)
one of those formulas from school I will always remember.
(42 / 250) = (x / 100.0)
250x = 4200.0
x = 4200.0 / 250
x = 16.8%
Thanks, that helps.
Jorge Godoy wrote:
Johan Geldenhuys <[EMAIL PROTECTED]> writes:
Now that I have the answer (16.801), How do I round it of to 16.80
? I only need it to be to the closest 1/100.
print "%.2f" % 16.800
Johan Geldenhuys <[EMAIL PROTECTED]> writes:
> Now that I have the answer (16.801), How do I round it of to 16.80
> ? I only need it to be to the closest 1/100.
>>> print "%.2f" % 16.801
16.80
>>> a = 16.80001
>>> b = "%.2f" % a
>>> b
'16.80'
>>> float(b)
16.8
Now that I have the answer (16.801), How do I round it of
to 16.80 ? I only need it to be to the closest 1/100.
TIA
Jorge Godoy wrote:
Frank Moore <[EMAIL PROTECTED]> writes:
Johan,
You could try:
percentage = (42 * 250)/100
This gives the answer 105.
A
nice syntax.
Cheers,
pujo
On 07 Nov 2005 12:18:44 -0200, Jorge Godoy <[EMAIL PROTECTED]> wrote:
Pujo Aji <[EMAIL PROTECTED]> writes:> don't forget to use dot or converge into float.
Or import division from __future__.>>> from __future__ import division>>> 42 / 2500.16801>>>--Jorg
Johan Geldenhuys wrote:
> Wow, you gave 105% on this one. ;-)
>
You're right. I misread the question and thought that you wanted 42% of
250.
My mistake.
Cheers,
F.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Pujo Aji <[EMAIL PROTECTED]> writes:
> don't forget to use dot or converge into float.
Or import division from __future__.
>>> from __future__ import division
>>> 42 / 250
0.16801
>>>
--
Jorge Godoy <[EMAIL PROTECTED]>
___
Tutor m
Steve Nelson <[EMAIL PROTECTED]> writes:
> Don't you need to specify one of these numbers as a float?
You do. My mistake and I haven't seen both corrections before sending my last
message. :-)
> I recall reading somewhere that all division would be 'true division'
> from >3.0 but this isn't the
Frank Moore <[EMAIL PROTECTED]> writes:
> Johan,
>
> You could try:
>
> percentage = (42 * 250)/100
>
> This gives the answer 105.
And that sounds weird, doesn't it? 42 is smaller than 250, so I'd expect it
to be less than 100% of the value... In fact, it is
>>> 42.0/250
0.1680
On 07 Nov 2005 11:50:05 -0200, Jorge Godoy <[EMAIL PROTECTED]> wrote:
> Johan Geldenhuys <[EMAIL PROTECTED]> writes:
>
> > What is the syntax if I want to work out what percentage 42 is out of 250?
>
> If you want it as a factor to multiply / divide by something:
>
> perc = 42/250
Don't you need t
Wow, you gave 105% on this one. ;-)
Frank Moore wrote:
Johan Geldenhuys wrote:
Hi all,
What is the syntax if I want to work out what percentage 42 is out of 250?
Johan,
You could try:
percentage = (42 * 250)/100
This gives the answer 105.
Cheers,
F.
__
don't forget to use dot or converge into float.perc = 42./250or perc = float(42)/250otherwise:it is treated as integer.pujoOn 07 Nov 2005 11:50:05 -0200,
Jorge Godoy <[EMAIL PROTECTED]> wrote:
Johan Geldenhuys <[EMAIL PROTECTED]> writes:> What is the syntax if I want to work out what percentage 42
I have it like that, just thought there could be another way.
8-)
Jorge Godoy wrote:
Johan Geldenhuys <[EMAIL PROTECTED]> writes:
What is the syntax if I want to work out what percentage 42 is out of 250?
If you want it as a factor to multiply / divide by something:
Johan Geldenhuys wrote:
>Hi all,
>
>What is the syntax if I want to work out what percentage 42 is out of 250?
>
>
Johan,
You could try:
percentage = (42 * 250)/100
This gives the answer 105.
Cheers,
F.
___
Tutor maillist - Tutor@python.org
http:
Johan Geldenhuys <[EMAIL PROTECTED]> writes:
> What is the syntax if I want to work out what percentage 42 is out of 250?
If you want it as a factor to multiply / divide by something:
perc = 42/250
If you want it to "read" as percentage:
perc_100 = (42/250)*100
Sds,
--
Jorge Godoy <[EM
Hi all,
What is the syntax if I want to work out what percentage 42 is out of 250?
TIA,
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
24 matches
Mail list logo