I get an error:
Traceback (most recent call last):
File "somefile", line 7, in
str.replace(a, "")
TypeError: replace() takes at least 2 arguments (1 given)
But I think I have 2 arguments: a being the "old" argument as per the
documentation, "" bei
ons to ask, but the above
questions seem to be a missing link in my knowledge at this point.
Thank you as always.
--
Roger Lea Scherer
623.255.7719
*Strengths:*
Input, Strategic,
Responsibility,
Learner, Ideation
<https://www.avast.com/sig-email?utm_medium=email&
s to be related to python
somehow although I'm a little foggy about that. If this is not the forum
please tell me where to go (be nice).
Thank you.
--
Roger Lea Scherer
623.255.7719
*Strengths:*
Input, Strategic,
Responsibility,
Learner, Ideation
__
nk you for your help as always.
--
Roger Lea Scherer
623.255.7719
*Strengths:*
Input, Strategic,
Responsibility,
Learner, Ideation
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
IDLE/Shell. And I can't for the life of me remember how I originally got
the Python 3.6.5 Shell.
Thank you
--
Roger Lea Scherer
623.255.7719
*Strengths:*
Input, Strategic,
Responsibility,
Learner, Ideation
___
Tutor mai
st helpful I've encountered.
Thank you as always.
On Thu, Aug 30, 2018 at 6:01 AM Mats Wichmann wrote:
> On 08/30/2018 02:54 AM, Alan Gauld via Tutor wrote:
> > On 30/08/18 00:09, Roger Lea Scherer wrote:
> >> I'm trying to implement a local host. My instructio
have python3 because I run python3.6 shell practically every day. I've
looked in the Program Files folder, came up empty as far as python is
concerned, but I don't know where else to look?
Or if this is not the correct forum, can you please (re)direct me to the
correct one?
Thank y
t find a way to
access the 1 or the 2 in the dictionary key:value pair {0.5: [1, 2]}
Thank you for your help.
--
Roger Lea Scherer
623.255.7719
*Strengths:*
Input, Strategic,
Responsibility,
Learner, Ideation
___
Tutor maillist - T
sortedFrac[i-1][0]: # so if the float equals
the previous float
sortedFrac.pop(sortedFrac[i][0]) # remove the second
float
else:
sortedFrac.append(sortedFrac[i][0])
except ValueError:
continue
--
Roger Lea Scherer
623.255.7719
ge")
t.right(20)
t.backward(branchLen)
t.pencolor("green")
def main():
t = turtle.Turtle()
myWin = turtle.Screen()
t.speed(0)
t.left(90)
t.up()
t.backward(100)
t.down()
t.color("green")
tree(75, 20, t)
myWi
})
>
> Alternative spellings:
>
> >>> from string import punctuation
> >>> (str.maketrans({c: None for c in punctuation})
> ... == str.maketrans(dict.fromkeys(punctuation))
> ... == str.maketrans("", "", punctuation))
> True
>
>
> ________
splitted = aline.split()
try:
coords = [int(i) for i in splitted]
x = coords[0]
y = coords[1]
hadir.goto(x, y)
except:
while splitted == "UP":
hadir.pu()
while splitted == "DOWN":
'berens': 1}
['']
{'to': 1, 'berens': 1, '': 1}
This eBook is for the use of anyone anywhere at no cost and with
['this', 'ebook', 'is', 'for', 'the', 'use', 'of', 'anyone', 'anywhere',
'at', 'no', 'cost', 'and', 'with']
{'to': 1, 'berens': 1, '': 1, 'with': 1}
Thank you as always.
--
Roger Lea Scherer
623.255.7719
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
pos = alphabet.index(char)
encrypted += encryption[pos]
print(encrypted)
encryptor(address)
--
Roger Lea Scherer
623.255.7719
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
def findHypot(a, b):
c = math.sqrt((a ** 2) + (b ** 2))
if c == (round(c)):
return round(c)
else:
return round(c, 4)
findHypot(3, 4)
from the IDE:
= RESTART: C:\Users\Roger\Documents\GitHub\LaunchCode\hypotenuse.py
=
>>>
Thank you as always.
--
R
lor = alex.pencolor("darkgreen")
print(color)
def main():
for i in range(4):
drawSquare(alex,20)
main()
wn.exitonclick()
--
Roger Lea Scherer
623.255.7719
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
g + h + i + j + k + l
print(1/m)
print(math.pi)
--
Roger Lea Scherer
623.255.7719
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
"And what color would you like to fill it with? ")
hadir.begin_fill()
hadir.color(outlineColor)
print(filler)
for i in range(sides):
hadir.forward(length)
hadir.left(360 / sides)
hadir.up()
hadir.end_fill()
Thanks, as always.
--
Roger Lea Scherer
623.255.7719
_
I know I don't have to apologize, but I am so independent I hate asking for
help and you guys and gals have been so helpful that now that I'm stuck
again I'm sorry I have to. I've looked on StackOverflow and followed their
advice (which I can't make work) and went to the python/turtle
documentation
I'm trying to finish chapter 5 in my book and it has to do with
dictionaries and creating simple games. We need a pool of points and the
ability to exchange point between the pool and each of the, what I call,
attributes of Strength, Health, Wisdom, and Dexterity. I got only to the
first option and
The first step is to input data and then I want to check to make sure
there are only digits and no other type of characters. I thought regex
would be great for this. The program works great, but no matter what I
enter, the regex part does the same thing. By same thing I mean this:
RESTA
I'm trying to learn how open a xls file in python. I thought this would be
easier. I've read on a blog this code and seen it on other websites. I
thought I'd try it out. I'm on Windows 10 with python 3.6.4.
import xlrd
def open_file(path):
"""
Open and read an Excel file
"""
book
This is my first time in this "forum", please be patient I will do my best.
As I was going through a book and came across this challenge, I did what I
believe was a success. And I know there are ways of making the decimal
place be limited to 2 places, but my question is more of understanding why
t
23 matches
Mail list logo