Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: python 3 from command line
Post: python 3 from command line

Can't figure out why I cannot run these two small scripts from the command line. Pasted below is a copy of the results I get. It did work at a point in time, but I am doing something wrong that I ha...
Dixon General Coding Help 1 1,964 Mar-01-2020, 05:27 PM
    Thread: counting items in a list of number combinations
Post: RE: counting items in a list of number combination...

(Feb-19-2020, 07:01 PM)michael1789 Wrote: I'm sure this is super hacky, but: import itertools numbers = [1,2,3,4,5,6,7,8,9,10] result = itertools.permutations(numbers,2) total_permutations = 0 for i...
Dixon General Coding Help 2 2,030 Feb-19-2020, 07:06 PM
    Thread: counting items in a list of number combinations
Post: counting items in a list of number combinations

import itertools numbers = [1,2,3,4,5,6,7,8,9,10] result = itertools.permutations(numbers,2) for item in result: print (item)Simple, I know, but escaping me me how to count the permutations of pai...
Dixon General Coding Help 2 2,030 Feb-19-2020, 06:08 PM
    Thread: Jupyter Notebook
Post: Jupyter Notebook

Suddenly I'm having a problem starting Jupyter Notebook, or should I say starting Python 3 in Notebook. Something is blocking it, whether it's Norton or Windows I don't know. I called Norton, and wa...
Dixon General Coding Help 1 2,412 Feb-11-2020, 11:40 PM
    Thread: Class code problem from CS Dojo YouTube
Post: RE: Class code problem from CS Dojo YouTube

https://www.youtube.com/watch?v=wfcWRAxRVBA&t=45s I typed in the code and didn't do the indents. I'm rather new to this forum, and didn't realize that using the python thingy wouldn't do the job...
Dixon General Coding Help 3 2,217 Feb-04-2020, 09:36 PM
    Thread: Class code problem from CS Dojo YouTube
Post: Class code problem from CS Dojo YouTube

class Robot: def introduce_self(self) print("My name is " + self.name) r1 = Robot() r1.name = "Tom" r1.color = "red" r1.weight = 30 r2 = Robot() r2.name = "Jerry" r2.color = "blue" r2.weight = 40 r...
Dixon General Coding Help 3 2,217 Feb-04-2020, 07:20 PM
    Thread: Loop independent of excecution time of a script
Post: RE: Loop independent of excecution time of a scrip...

Snippsat, can you enlighten me about the use of the lamda character? What's it's purpose? C:\code\home λ python 1_min.py Hello world 2020-02-02 22:09:45.740712 Hello world 2020-02-02 22:10:45.918306...
Dixon General Coding Help 8 3,678 Feb-02-2020, 10:44 PM
    Thread: site packages, python 3.8
Post: RE: site packages, python 3.8

Thanks to all. I got it to work at last...
Dixon General Coding Help 12 6,331 Feb-01-2020, 05:32 PM
    Thread: site packages, python 3.8
Post: RE: site packages, python 3.8

Snippsat, I tried the code in post #5, but no luck with it. Where in the world are you? By the time difference it could be Kuwait.
Dixon General Coding Help 12 6,331 Jan-29-2020, 11:22 PM
    Thread: site packages, python 3.8
Post: RE: site packages, python 3.8

I'll do it tomorrow. Time for Chardonay. :-)
Dixon General Coding Help 12 6,331 Jan-28-2020, 11:26 PM
    Thread: site packages, python 3.8
Post: RE: site packages, python 3.8

Still having problems: C:\Users\Dixon>cd appdata\local\programs\python C:\Users\Dixon\AppData\Local\Programs\Python>cd python38-32\mymodules\dist C:\Users\Dixon\AppData\Local\Programs\Python\...
Dixon General Coding Help 12 6,331 Jan-28-2020, 10:18 PM
    Thread: site packages, python 3.8
Post: RE: site packages, python 3.8

This is what I get when I follow instructions in the "Head First Python" book from page 182. If I'm supposed to format this in some specific way, I'm sorry. Anyway, now the computer can't find the '...
Dixon General Coding Help 12 6,331 Jan-27-2020, 11:10 PM
    Thread: site packages, python 3.8
Post: RE: site packages, python 3.8

(Jan-24-2020, 08:42 AM)buran Wrote: What happens if you explicitly specify file formats in the cli with --formats option? The docs state that default format on windows is zip, but anyway it's worth...
Dixon General Coding Help 12 6,331 Jan-24-2020, 09:49 PM
    Thread: site packages, python 3.8
Post: site packages, python 3.8

from setuptools import setup setup( name = 'vsearch' version = '1.0' description = 'The Head First PYthon Search Tools', author = 'HF Python 2e', author_email = '[email protected]'...
Dixon General Coding Help 12 6,331 Jan-23-2020, 11:45 PM
    Thread: Site packages, Python 3.8
Post: RE: Site packages, Python 3.8

(Jan-18-2020, 09:19 PM)buran Wrote: you have 2 missing commasAhh, something simple. Thanks.
Dixon General Coding Help 2 2,456 Jan-18-2020, 10:42 PM
    Thread: Site packages, Python 3.8
Post: Site packages, Python 3.8

from setuptools import setup setup( name = 'vsearch' version = '1.0' description = 'The Head First Python Search Tools', author = 'HF Python 2e', author_email = '[email protected]'...
Dixon General Coding Help 2 2,456 Jan-18-2020, 09:15 PM
    Thread: def search_for_vowels():
Post: RE: def search_for_vowels():

Yes, it works for me too now. I must have called it improperly yesterday. Thanks for the responses guys.
Dixon General Coding Help 6 3,568 Jan-09-2020, 10:21 PM
    Thread: def search_for_vowels():
Post: RE: def search_for_vowels():

(Jan-07-2020, 12:38 AM)micseydel Wrote: The code you've provided defines a function. It doesn't do anything else. Barring a SyntaxError, you're not really going to get errors from just defining a fu...
Dixon General Coding Help 6 3,568 Jan-07-2020, 10:07 PM
    Thread: def search_for_vowels():
Post: def search_for_vowels():

def search4vowels(word): vowels = set('aeiou') found = vowels.intersection(set(word)) for vowel in found: print(vowel)Gives a Traceback name error when trying to invoke: "name 'sea...
Dixon General Coding Help 6 3,568 Jan-06-2020, 11:27 PM
    Thread: odd or even minute
Post: RE: odd or even minute

(Dec-28-2019, 09:22 PM)perfringo Wrote: (Dec-28-2019, 05:07 PM)Dixon Wrote: When I entered 'odds' on one line it worked. I guess the book is in error where is says on page 13 that it's OK to ente...
Dixon General Coding Help 12 8,541 Dec-29-2019, 04:58 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020