thanks!
Il giorno 05/mag/2013, alle ore 18:58, Eric Brunson ha
scritto:
> On 05/05/2013 10:08 AM, leonardo selmi wrote:
>> hi guys
>>
>> i need to find a good book to learn python with exercises and solutions, any
>> suggestions?
>>
>> thanks!
&g
hi guys
i need to find a good book to learn python with exercises and solutions, any
suggestions?
thanks!
best regards
leonardo--
http://mail.python.org/mailman/listinfo/python-list
dear python community,
i wrote the following program:
from datetime import datetime
now = datetime.now()
current_month = now.month
current_day = now.day
current_year = now.year
current_hour = now.hour
current_minute = now.minute
current_second = now.second
print str(current_month) + '/' + str(cur
i have also this program:
write a function called rental_car_costthat takes days as input and returns the
cost for renting a car for said number of days. The cost must abide by the
following conditions:
Every day you rent the car is $40.
If you rent the car for 3 or more days, you get $20 off yo
hello all,
i have typed the following program from the book "learn python the hard way":
from sys import argv
script, first, second, third = argv
print "The script is called:", script
print "Your first variable is:", first
print "Your second variable is:", second
print "Your third variable is:"
hi python community,
i wrote the following programm:
from sys import argv
script, userName = argv
prompt = '> '
print 'hi %s, i am the %s script' % (userName, script)
print "i'd like to ask you a few questions."
print 'do you like me %s' % userName
likes = raw_input(prompt)
print "where do you
dear python programmers,
i am focused on learning to program but i need help from all of you. i am a
beginner but it is hard to find the right book or website to learn, i know that
i have to do exercises but so far i found resources with gaps. i would be very
grateful if you could give me sugge
dear python programmers,
i am focused on learning to program but i need help from all of you. i am a
beginner but it is hard to find the right book or website to learn, i know that
i have to do exercises but so far i found resources with gaps. i would be very
grateful if you could give me sugge
hi guys
i wrote this example :
name = raw_input("What is your name?")
quest = raw_input("What is your quest?")
color = raw_input("What is your favorite color?")
print """Ah, so your name is %s, your quest is %s,
and your favorite color is %s.""" % (name, quest, color)
but i get this error: T
hi all,
i wrote the following code:
def find(word, letter):
index = 0
while index < len(word):
if word[index] == letter:
return index
index = index + 1
return -1
if i run the program i get this error: name 'word' is not defined. how can i
solve it?
than
hi
is there anyone can suggest me a good book to learn python? i read many but
there is always something unclear or examples which give me errors.
how can I start building a sound educational background
thanks for any help
best regards
--
http://mail.python.org/mailman/listinfo/python-list
hi guys
i typed the following program:
class ball:
def _init_(self, color, size, direction):
self.color = color
self.size = size
self.direction = direction
def _str_(self):
msg = 'hi, i am a ' + self.size + ' ' + self.color + 'ball!'
return msg
my
pls i need help:
i have copied the following from a book and tried to make it work:
import math
def area(radius):
return math.pi * radius**2
def circumference(radius):
return 2 * math.pi * radius
i saved the above program from python shell into a file as "circle.py" . when i
type "import circ
>
>
>
>
>> gentlemen:
>>
>> i am reading a book about python and now i am blocked, i can't store
>> functions in modules: i have a mac and am using version 2.7.3, i have
>> created a function and want to save it as a file using "idle", i have saved
>> it with .py , when i try to import th
14 matches
Mail list logo