problem with tutor mailing

2005-02-16 Thread administrata
i'm using tutor maling...

i e-mail some questions to tutor and

get answers.

but, i frequently get mails which aren't related with my question.

how should i stop it?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Variables.

2005-02-16 Thread administrata
sry, I mean the problem is... about lining

it doesn't look like this...

Allen woke up early in the morning. But, it was unusal by Allen.
Allen's pillow was with Allen. Allen didn't want to wake up But, Allen
tried my best and woke up. it was so amazing
-- 
http://mail.python.org/mailman/listinfo/python-list


Problems in making calulating program.

2005-02-15 Thread administrata
I wrote this to add 2 numbers...

print "Please input data"
number1 = int(raw_input(" "))
number2 = int(raw_input("+ "))


total = number1 + number2
print total

raw_input("")

I want to make output like this...

1 + 1 = 2

But, actually... it looks like this...

1
+ 1
2

HELP;
-- 
http://mail.python.org/mailman/listinfo/python-list


Variables.

2005-02-15 Thread administrata
I wrote this, It's a bit lame though

I = "Allen"
me = "Allen"
my = "Allen's"

print \
"""
%s woke up early in the morning. But, it was unusal by %s. %s pillow
was with %s. %s didn't want to wake up But, %s tried my best and woke up.
it was so amazing!""" % (I,me,my,me,I,I)

raw_input("\n\\t\t\t- The End -")

But it looks like this...

Allen woke up early in the morning. But, it was unusal by Allen. 
Allen's pillow
was with Allen. Allen didn't want to wake up But, Allen tried my best and woke 
up.
it was so amazing

- The End -

HELP plz
-- 
http://mail.python.org/mailman/listinfo/python-list


Delivery Status Notification (Failure)

2005-02-15 Thread administrata
Hello. I was about to use tutor-mailing But, When i send to
tutor@python.org

reply is...

This is an automatically generated Delivery Status Notification.

Delivery to the following recipients failed.

   [EMAIL PROTECTED]

and the header...

From: Sm0kin'_Bull . <[EMAIL PROTECTED]> 
To: tutor@python.org 
Subject: [Tutor] . 
Sent: Tuesday, February 15, 2005 7:57 PM 
MIME-Version: 1.0 
X-Originating-IP: [193.38.108.210] 
X-Originating-Email: [EMAIL PROTECTED] 
X-Sender: [EMAIL PROTECTED] 
Received: from mail pickup service by mail2world.com with Microsoft
SMTPSVC; Tue, 15 Feb 2005 02:48:54 -0800
Received: from 10.1.50.1 unverified ([10.1.50.1]) by
mwde09la.mail2world.com with Mail2World SMTP Server,Tue 15 Feb 2005
02:48:51 -08:00
Received: from bag.python.org (bag.python.org [194.109.207.14])by
smtp-vbr1.xs4all.nl (8.12.11/8.12.11) with ESMTP id
j1FAxqDX014057;Tue, 15 Feb 2005 11:59:52 +0100 (CET)(envelope-from
[EMAIL PROTECTED])
Received: from bag.python.org (bag [127.0.0.1])by bag.python.org
(Postfix) with ESMTP id A93C81E4007;Tue, 15 Feb 2005 11:59:52 +0100
(CET)
Received: from bag.python.org (bag [127.0.0.1])by bag.python.org
(Postfix) with ESMTP id 26DE51E4007for ; Tue, 15 Feb
2005 11:59:51 +0100 (CET)
Received: from bag (HELO bag.python.org) (127.0.0.1)by bag.python.org
with SMTP; 15 Feb 2005 11:59:50 +0100
Received: from hotmail.com (bay22-f4.bay22.hotmail.com [64.4.16.54])by
bag.python.org (Postfix) with ESMTPfor ; Tue, 15 Feb
2005 11:59:50 +0100 (CET)
Received: from mail pickup service by hotmail.com with Microsoft
SMTPSVC;Tue, 15 Feb 2005 02:58:00 -0800
Received: from 193.38.108.210 by by22fd.bay22.hotmail.msn.com with
HTTP;Tue, 15 Feb 2005 10:57:20 GMT
Sender: [EMAIL PROTECTED] 
ResentFrom: [EMAIL PROTECTED] 
X-Original-To: tutor@python.org 
Delivered-To: [EMAIL PROTECTED] 
X-Spam-Status: OK 0.223 
X-Spam-Level: ** 
X-OriginalArrivalTime: 15 Feb 2005 10:58:00.0997
(UTC)FILETIME=[373B4D50:01C5134D]
X-BeenThere: tutor@python.org 
X-Mailman-Version: 2.1.5 
Precedence: list 
List-Id: Discussion for learning programming with Python

List-Unsubscribe: 
,
List-Archive:  
List-Post:  
List-Help:  
List-Subscribe: ,
Errors-To: [EMAIL PROTECTED] 
X-Virus-Scanned: by XS4ALL Virus Scanner 

Plz HELP me;
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: [NewBie] Tut0r Thing

2005-02-15 Thread administrata
Daniel Yoo <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> : if you're talking about the "tutor at python.org" mailing list, it's a 
> mailing list
> : that you send mail to and get mails from, as explained on the tutor mailing
> : list page:
> 
> :http://mail.python.org/mailman/listinfo/tutor
> 
> 
> Hello,
> 
> Also, from the odd spelling of the subject line, I suspect that the
> original poster thinks that we're some kind of cracking group.
> 
> 
> I hope not, but just to make sure it's clear: when we in the Python
> community talk about "hacking", we usually mean it in the constructive
> sense: we like building software systems and helping people learn how
> to program.
> 
> ESR has a good summary here:
> 
> http://www.catb.org/~esr/faqs/hacker-howto.html#what_is
> 
> I always feel silly about bringing this up, but it has to be said,
> just to avoid any misunderstanding.
> 
> 
> Best of wishes to you.

I'm not clever to hack though, :)
-- 
http://mail.python.org/mailman/listinfo/python-list


[NewBie] Tut0r Thing

2005-02-14 Thread administrata
I logged in.

But, don't know how to use it.

and What the hell is digest thing?

Is Tutor Thing like i send questions to someone by e-mailing

and get answers?

HELP :)
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: [NooB] a Variable in multiple quotes...

2005-02-14 Thread administrata
Leif K-Brooks <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> administrata wrote:
> > Is it possible? 
> > 
> > I tried...
> > 
> > I = "John"
> > print \
> > """
> > I used to love pizza"""
> > 
> > 
> > Error occurs!!!
> 
> No error occurs; it prints "I used to love pizza", as would be expected.
> 
> Oh: from the subject line, I'm guessing that you want it to say "John 
> used to love pizza" instead? In that case, try doing this:
> 
> I = "John"
> print "%s used to love pizza" % I

How can I do it with several variables?

About 10 or more...

HELP plz :)
-- 
http://mail.python.org/mailman/listinfo/python-list


[NooB] a Variable in multiple quotes...

2005-02-13 Thread administrata
Is it possible? 

I tried...


I = "John"
print \
"""
I used to love pizza"""


Error occurs!!!

But, I don't know how to fix... HELP

thx 4 reading.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: [NooB] Using Escape Sesquences with Strings...

2005-02-11 Thread administrata
bruno modulix <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> administrata wrote:
> > Hello! :)
> > I've reading 'Python Programmin for the Absolute beginner'.
> > I got questions which is...
> > 
> > print "\t - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "
> > 
> > rock = """
> > Igneous  Sedimentary  Metamorphic
> > 
> > Lava Grains   Marble
> > Ramdom crystals  LayerBands
> > Granite  Salt Schist
> > IntrusiveWeathering   Heat + Pressure
> >  Deposition   Change"""
> > print \trock
> > 
> > print "\t - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "
> > 
> > error occurs!
> > 
> > I don't know how to \t The variable.
> 
> see Daniel's answer for the why.
> Now for the how, I guess you want a tab on each line so you have two 
> solutions :
> 1/ putting the tabs in the string:
> rock = """
> \tIgneous  Sedimentary  Metamorphic
> 
> \tLava Grains   Marble
> \tRamdom crystals  LayerBands
> \tGranite  Salt Schist
> \tIntrusiveWeathering   Heat + Pressure
> \t Deposition   Change"""
> 
> print rock
> 
> 2/ adding the tabs before printing:
> rock = """
> Igneous  Sedimentary  Metamorphic
> 
> Lava Grains   Marble
> Ramdom crystals  LayerBands
> Granite  Salt Schist
> IntrusiveWeathering   Heat + Pressure
>   Deposition   Change"""
> 
> 
> for line in rock.split("\n"):
>print "\t%s" % line
> 
> HTH,

thx 4 your helpful msg.

I'll input 1 instead of 2 which is a bit complicated for me.
-- 
http://mail.python.org/mailman/listinfo/python-list


[NooB] Using Escape Sesquences with Strings...

2005-02-11 Thread administrata
Hello! :)
I've reading 'Python Programmin for the Absolute beginner'.
I got questions which is...

print "\t - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "

rock = """
Igneous  Sedimentary  Metamorphic

Lava Grains   Marble
Ramdom crystals  LayerBands
Granite  Salt Schist
IntrusiveWeathering   Heat + Pressure
 Deposition   Change"""
print \trock

print "\t - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "

error occurs!

I don't know how to \t The variable.

Help!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: [N00B] What's %?

2005-02-11 Thread administrata
[EMAIL PROTECTED] (administrata) wrote in message news:<[EMAIL PROTECTED]>...
> Hi! it's been about a week learning python!
> I've read 'python programming for the absolute begginer'
> I don't understand about % like...
> 
> 107 % 4 = 3
> 7 % 3 = 1
> 
> I'm confused with division :/
> Please help me...
> 
> thx 4 reading.

sry, i don't know much about maths

What is % used for?

such as?
-- 
http://mail.python.org/mailman/listinfo/python-list


[N00B] What's %?

2005-02-10 Thread administrata
Hi! it's been about a week learning python!
I've read 'python programming for the absolute begginer'
I don't understand about % like...

107 % 4 = 3
7 % 3 = 1

I'm confused with division :/
Please help me...

thx 4 reading.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: [noob] Questions about mathematical signs...

2005-02-10 Thread administrata
Steve Holden <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> administrata wrote:
> 
> > Hi! I'm programming maths programs.
> > And I got some questions about mathematical signs.
> > 
> > 1. Inputing suqare like a * a, It's too long when I do time-consuming
> >things. Can it be simplified?
> > 
> You mean you have to write a*a*a*a when you want the fourth power? You 
> need the exponentiation operator ** :
> 
>   >>> for i in range(6):
>   ...   print 2 ** i
>   ...
> 1
> 2
> 4
> 8
> 16
> 32
> 
> > 2. Inputing fractions like (a / b) + (c / d), It's tiring work too.
> >Can it be simplified?
> > 
> Surely you jest. Can you suggest a simplification, or have you come 
> across one in some other language?
> 
> > 3. How can i input root?
> > 
> Fractional exponents give you roots (sorry about the tiring division):
> 
>   >>> for i in range(1,7):
>   ...   print i, 64 ** (1.0/i)
>   ...
> 1 64.0
> 2 8.0
> 3 4.0
> 4 2.82842712475
> 5 2.29739670999
> 6 2.0
> 
> > thx 4 reading :)
> 
> regards
>   Steve

Helpful! :)
-- 
http://mail.python.org/mailman/listinfo/python-list


[noob] Questions about mathematical signs...

2005-02-06 Thread administrata
Hi! I'm programming maths programs.
And I got some questions about mathematical signs.

1. Inputing suqare like a * a, It's too long when I do time-consuming
   things. Can it be simplified?

2. Inputing fractions like (a / b) + (c / d), It's tiring work too.
   Can it be simplified?

3. How can i input root?

thx 4 reading :)
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Error!

2005-02-06 Thread administrata
"John Machin" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> administrata wrote:
> > I'm programming Car Salesman Program.
> > It's been "3 days" learning python...
> 
> >From whom or what book or what tutorial?
> 
> > But, i got problem
> 
> You got problemS. What Jeff & Brian wrote, plus:
> 
> You have "change" instead of "charge".
> 
> You forgot to add in the base price -- "actual price" according to you
> comprises only the taxes and fees. Where is your car yard? We'd each
> like to order a nice shiny red Ferrari :-)
> 
> Cheers,
> John

Thx 4 helps everyone! :)
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Error!

2005-02-05 Thread administrata
"John Machin" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> administrata wrote:
> > I'm programming Car Salesman Program.
> > It's been "3 days" learning python...
> 
> >From whom or what book or what tutorial?
> 
> > But, i got problem
> 
> You got problemS. What Jeff & Brian wrote, plus:
> 
> You have "change" instead of "charge".
> 
> You forgot to add in the base price -- "actual price" according to you
> comprises only the taxes and fees. Where is your car yard? We'd each
> like to order a nice shiny red Ferrari :-)
> 
> Cheers,
> John

erm... sry i don't get it :\

can you modify actual_price?

actual_price = (((base_price * tax / 100) + license1 / 100) + dealer +
charge
-- 
http://mail.python.org/mailman/listinfo/python-list


[noob] Error!

2005-02-04 Thread administrata
I'm programming Car Salesman Program.
It's been "3 days" learning python...
But, i got problem


Write a Car Salesman program where the user enters the base price of a
car. The program should add on a bunch of extra fees such as tax,
license, dealer prep, and destination charge. Make tax and license a
percent of the base price. The other fees should be set values.
Display the actual price of the car once all the extras are applied.

print "CAR SALESMAN PROGRAM"
print "\nEnter data."
base_price = int(raw_input("Base Price: "))

tax = int(raw_input("/nTax: "))
license1 = int(raw_input("License: "))
dealer = 30
charge = 5
print "Dealer Prep: ", dealer
print "Destination Charge: ", charge

actual_price = (((base_price * tax / 100) + license1 / 100) + dealer +
change
print "\n\nActual price: ", actual_price

raw_input("")

error occurs, i think the problem is in actual_price. but,
I don't know how to comebine percentage and raw_input.
help me...

thx 4 reading... :)
-- 
http://mail.python.org/mailman/listinfo/python-list