Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Presenting random test questions
Post: Presenting random test questions

I have Python 3.10, and want to read a series of multiple choice or Yes-No/True-False test questions into a list (or array or whatever) from an Excel spreadsheet, complete with 5 possible answers for ...
oradba4u General Coding Help 2 909 Sep-25-2022, 02:47 PM
    Thread: PAGE Anyone?
Post: RE: PAGE Anyone?

OK, many thanks... but, what about the other half of my question... What is the (best?) GUI development environment of choice for Python by you programmers out there, and why did you choose it? I don...
oradba4u News and Discussions 6 2,720 Dec-23-2020, 05:34 PM
    Thread: PAGE Anyone?
Post: RE: PAGE Anyone?

The documentation there is pretty sparse, and not too detailed... For example, I created 4 radio buttons per their example, and when I click one, ALL of them get selected.
oradba4u News and Discussions 6 2,720 Dec-23-2020, 05:21 AM
  Photo Thread: How do I scrape a web page?
Post: How do I scrape a web page?

All: I want to scrape this web-page using Python, but specifically I want to retrieve the data that I've indicated below: Here's the webpage: https://www.baseball-reference.com/teams...ders.shtml Th...
oradba4u Web Scraping & Web Development 2 2,119 Dec-23-2020, 04:46 AM
    Thread: PAGE Anyone?
Post: PAGE Anyone?

All: Does anyone know of a website that supports The Python GUI Development Environment called "Page"? Also, What is the GUI Designer of choice for Professional Python Developers?
oradba4u News and Discussions 6 2,720 Dec-23-2020, 04:09 AM
    Thread: Python to Oracle Conn Issue
Post: RE: Python to Oracle Conn Issue

just curious if you can connect to Oracle thru ODBC https://www.devart.com/odbc/oracle/docs/python.htm
oradba4u General Coding Help 2 39,734 Sep-06-2020, 03:29 PM
    Thread: Count & Sort occurrences of text in a file
Post: RE: Count & Sort occurrences of text in a file

That did the trick. Thank you guys for all your help. I'm a python newbie, but I understand most of the syntax, especially when i see an example for the first time.
oradba4u General Coding Help 7 3,097 Sep-06-2020, 03:23 PM
    Thread: Count & Sort occurrences of text in a file
Post: RE: Count & Sort occurrences of text in a file

That's GREAT, but how can I sort the final list according to the number of occurrences?
oradba4u General Coding Help 7 3,097 Sep-06-2020, 01:45 PM
    Thread: Count & Sort occurrences of text in a file
Post: RE: Count & Sort occurrences of text in a file

from collections import Counter, defaultdict f = open('phonebook.tmp', "r") if f.mode == "r": text = f.read() freqword = defaultdict(list) for word, freq in Counter(text).items(): freqword[...
oradba4u General Coding Help 7 3,097 Sep-06-2020, 01:35 PM
    Thread: Count & Sort occurrences of text in a file
Post: Count & Sort occurrences of text in a file

ALL: I have an ASCII text file that contains First and Last names of a phone list. Each full name is on a newline. I need a new list generated that is sorted by the number of occurrences these names a...
oradba4u General Coding Help 7 3,097 Sep-06-2020, 01:03 PM
    Thread: Create exception handler
Post: RE: Create exception handler

That helped immensely... Thanks a lot!
oradba4u General Coding Help 7 3,108 May-23-2020, 03:25 AM
    Thread: Create exception handler
Post: RE: Create exception handler

Given a range of a min_year and a max_year, raise an exception if value entered is not an integer, OR the value does not fall in the specified range (in this case 1959-2007) Here's what I've tried (c...
oradba4u General Coding Help 7 3,108 May-22-2020, 07:58 PM
    Thread: Create exception handler
Post: RE: Create exception handler

Sorry, but I don't want to bandy back and forth about what I've tried... what I've tried obviously is not working! I'm sure it's a stupid mistake... Also, I do not need criticism or sarcastic remarks ...
oradba4u General Coding Help 7 3,108 May-22-2020, 07:37 AM
    Thread: Create exception handler
Post: Create exception handler

All: I'm a newbie to python, but I have lots of experience in other programming languages... I want to build an exception handling routine... If the year entered is not within a range of years, then ...
oradba4u General Coding Help 7 3,108 May-22-2020, 05:11 AM

User Panel Messages

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