[Tutor] str.replace error

2019-04-25 Thread Roger Lea Scherer
aceback (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, "" being the "new&quo

[Tutor] Installing python

2018-11-02 Thread Roger Lea Scherer
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_source=link

[Tutor] pip install

2018-10-16 Thread Roger Lea Scherer
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 ___ Tutor maillist - Tutor@python.org

[Tutor] Numpy documentation

2018-10-04 Thread Roger Lea Scherer
. -- 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

[Tutor] IDLE

2018-09-11 Thread Roger Lea Scherer
. 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 maillist - Tutor

Re: [Tutor] localhosting

2018-09-06 Thread Roger Lea Scherer
ou 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 instructions tell me to type > the > >> following com

[Tutor] localhosting

2018-08-30 Thread Roger Lea Scherer
ll 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 you. -- Roger Lea Scherer 623.255.7719

[Tutor] Accessing a tuple of a dictionary's value

2018-08-22 Thread Roger Lea Scherer
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 - Tutor@python.org To unsubscribe or change

[Tutor] Removing duplicates

2018-08-02 Thread Roger Lea Scherer
edFrac[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

[Tutor] Recursion

2018-06-18 Thread Roger Lea Scherer
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) myWin.exitonclick()

Re: [Tutor] Iteration issues

2018-06-07 Thread Roger Lea Scherer
>>> from string import punctuation > >>> (str.maketrans({c: None for c in punctuation}) > ... == str.maketrans(dict.fromkeys(punctuation)) > ... == str.maketrans("", "", punctuation)) > True > > > ___ > Tuto

[Tutor] Turtle drawing

2018-06-05 Thread Roger Lea Scherer
plit() 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": hadir.pd() turtle

[Tutor] Iteration issues

2018-05-10 Thread Roger Lea Scherer
, '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

[Tutor] beginning encryption

2018-04-19 Thread Roger Lea Scherer
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

[Tutor] Return problems

2018-04-07 Thread Roger Lea Scherer
): 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. -- Roger Lea Scherer 623

[Tutor] Turtle color question

2018-03-29 Thread Roger Lea Scherer
"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

[Tutor] Pi approximation

2018-03-28 Thread Roger Lea Scherer
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

[Tutor] Polygon fill in turtle

2018-03-27 Thread Roger Lea Scherer
"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 _

[Tutor] Turtle Issues

2018-03-06 Thread Roger Lea Scherer
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

[Tutor] Another question, dictionaries

2018-03-02 Thread Roger Lea Scherer
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

[Tutor] Regex not working as desired

2018-02-26 Thread Roger Lea Scherer
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:

[Tutor] xlrd has no attribute

2018-01-11 Thread Roger Lea Scherer
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

[Tutor] Floating decimal question

2017-12-18 Thread Roger Lea Scherer
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