Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: get two characters, count and print from a .txt file
Post: RE: get two characters, count and print from a .tx...

@buran, There is a set to solved button and is now checked, relax **huh**
Pleiades General Coding Help 9 3,388 Oct-03-2020, 06:11 AM
    Thread: get two characters, count and print from a .txt file
Post: RE: get two characters, count and print from a .tx...

@buran solved at stack-exchange # dictionary to store count of each word (2 characters) eg. "an": 2 wordDict = {} file = open("paradise.txt", 'r') # read each line in file for line in file: # re...
Pleiades General Coding Help 9 3,388 Oct-03-2020, 06:04 AM
    Thread: get two characters, count and print from a .txt file
Post: RE: get two characters, count and print from a .tx...

@buran, I had no idea that would be illegal I'm just asking for help of a nice person?
Pleiades General Coding Help 9 3,388 Oct-03-2020, 05:41 AM
    Thread: get two characters, count and print from a .txt file
Post: get two characters, count and print from a .txt fi...

Hi all, I'm back anyway The program I wrote is terrible so if anyone can make a different py and give me some pointers well thanks a bunch **wall** What I would like help on is to print only the f...
Pleiades General Coding Help 9 3,388 Oct-03-2020, 05:10 AM
    Thread: How to Print a list = ['a','b','c'], using tkinter along with a custom font?
Post: RE: How to Print a list = ['a','b','c'], using tki...

Thanks Larz60+ that code was redundant. I really would like to see if tkinter or pyglet is able to print the a list for the Vglyphs so I can see the font in Voynich displayed. import random while Tr...
Pleiades GUI 2 2,389 Sep-15-2020, 03:54 PM
    Thread: How to Print a list = ['a','b','c'], using tkinter along with a custom font?
Post: How to Print a list = ['a','b','c'], using tkinter...

**smash** I'm trying to print out a list using tkinter and a custom font with the font family that is named Voynich. I have made several lists named Vglyphs that use the random module and I would lik...
Pleiades GUI 2 2,389 Sep-15-2020, 03:43 AM
    Thread: passing variable to function
Post: RE: passing variable to function

(Aug-20-2020, 04:48 PM)Rejoice Wrote: am trying to pass two columns from two different dataframes, is there any way i can do it. I tried .apply however it will help me to pass two columns of same da...
Pleiades General Coding Help 4 2,883 Sep-11-2020, 03:27 AM
    Thread: Problem with If else statement
Post: RE: Problem with If else statement

Can you post the video Milfredo, maybe different eyes can spot something you did not code properly from the video. Line 2 does look odd.
Pleiades General Coding Help 5 2,596 Aug-30-2020, 08:16 AM
    Thread: How do I stop this fast factorization program from printing beyond the 3rd output?
Post: RE: How do I stop this fast factorization program ...

(Dec-07-2019, 06:47 PM)Gribouillis Wrote: In the first code, I suppose it's yours, you wrote f = .... You only need to do the same. Thanks a million I figured it out with your help of course :) **da...
Pleiades General Coding Help 6 3,870 Dec-07-2019, 08:43 PM
    Thread: How do I stop this fast factorization program from printing beyond the 3rd output?
Post: RE: How do I stop this fast factorization program ...

Gribouillis I'm having trouble with def f, can you show me please Grib thanks. It's holding up what I would like to see regarding not printing beyond 3.
Pleiades General Coding Help 6 3,870 Dec-07-2019, 06:22 PM
    Thread: How do I stop this fast factorization program from printing beyond the 3rd output?
Post: RE: How do I stop this fast factorization program ...

@Gribouillis I get this error when I use your code straight out of the box. print_factors(f, 3) NameError: name 'f' is not defined Also maybe there is a way to suppress the primes and just print th...
Pleiades General Coding Help 6 3,870 Dec-07-2019, 03:59 PM
    Thread: How do I stop this fast factorization program from printing beyond the 3rd output?
Post: How do I stop this fast factorization program from...

I have a problem with this python37 code during printing and I would like it not to print out beyond the 3rd print statement of the loop. The program is super fast for a factorization program if I can...
Pleiades General Coding Help 6 3,870 Dec-07-2019, 03:09 PM
    Thread: Need help to identify Mersenne Primes, I do need a search pattern.
Post: Need help to identify Mersenne Primes, I do need a...

Hi, I have been struggling with this code for four weeks and I cannot seem to rap my head around how to search for certain numbers after I run the code in python37. I can return factors for numbers ...
Pleiades General Coding Help 0 1,927 Dec-03-2019, 11:05 PM
    Thread: How do I name a list while generating numbers on the fly?
Post: RE: How do I name a list while generating numbers ...

Ok this is what I received from stackexchange and then I edited it to get this far. The lst1z is enumerated but I don't have an enumerated lst1z with quotes. Can anyone edit my code. This is my des...
Pleiades General Coding Help 6 3,311 Dec-03-2019, 01:57 PM
    Thread: How do I name a list while generating numbers on the fly?
Post: RE: How do I name a list while generating numbers ...

(Dec-03-2019, 11:04 AM)buran Wrote: It's a really bad idea to construct variable names on the fly. Don't do it, just use a proper data structure if you are dealing with multiple listsI'm just constr...
Pleiades General Coding Help 6 3,311 Dec-03-2019, 11:12 AM
    Thread: How do I name a list while generating numbers on the fly?
Post: How do I name a list while generating numbers on t...

I use this code and it generates numbers in the list, but I would also like it create this name along with it for the list name. This is the name I hoping for: lst1z So here is my code Thanks: co...
Pleiades General Coding Help 6 3,311 Dec-03-2019, 10:53 AM
    Thread: How do I calculate a ratio from 2 numbers and return an equivalent list of about 1000
Post: RE: How do I calculate a ratio from 2 numbers and ...

@Anyone How do I print a specific denominator of a ratio? The code outputs ratios in this format of a dictionary like this: {1: 8978, 2: 17956, 3: 26934, 4: 35912, 5: 44890, 6: 53868, 7: 62846, ...
Pleiades General Coding Help 8 15,713 Nov-21-2019, 09:02 PM
    Thread: How do I calculate a ratio from 2 numbers and return an equivalent list of about 1000
Post: RE: How do I calculate a ratio from 2 numbers and ...

Thanks guys however I'm trying to create a clean print though. This print job repeats, and with a little help at stackexcange along with my modification we got it to work. However, checkout the print...
Pleiades General Coding Help 8 15,713 Nov-21-2019, 07:26 AM
    Thread: How do I calculate a ratio from 2 numbers and return an equivalent list of about 1000
Post: How do I calculate a ratio from 2 numbers and retu...

I was online at this amazing site for equivalent ratios. I would love to mimic or do the same as an output in python, but its a bit over my skills. Can you help me put it in this format, here is what...
Pleiades General Coding Help 8 15,713 Nov-20-2019, 04:47 AM
    Thread: Subtract 11 from entire list of quoted numbers
Post: Subtract 11 from entire list of quoted numbers

Hi I really need to subtract 11 just from every quoted number in the list. I have looked every where for help on this topic except here so I hope someone can help. Here is the code: list1 = [ 1, '3...
Pleiades General Coding Help 1 1,711 Nov-14-2019, 08:00 AM

User Panel Messages

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