Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: check if element is in a list in a dictionary value
Post: RE: check if element is in a list in a dictionary ...

(May-11-2022, 04:07 PM)ndc85430 Wrote: Well, remember that the value you're getting that contains what you're looking for is a list, so you need to look inside that. Can you have nested containers c...
ambrozote General Coding Help 4 1,962 May-11-2022, 04:18 PM
    Thread: check if element is in a list in a dictionary value
Post: check if element is in a list in a dictionary valu...

how can I check if an element is in a list in a dictionary value? for instance how can I get this code to output "Found it" a = "Doors" dict = {"a":["Doors","Windows"],"b":"Stairs"} if a in dict.v...
ambrozote General Coding Help 4 1,962 May-11-2022, 04:02 PM
    Thread: remove vowels in word with conditional
Post: RE: remove vowels in word with conditional

(May-01-2021, 06:04 PM)supuflounder Wrote: Don't you mean "<= 4" in line 5? The problem is that you are doing shorter = words[index].replace(x, "")So let's look at what happens Let words[index]...
ambrozote General Coding Help 12 4,094 May-02-2021, 02:46 PM
    Thread: remove vowels in word with conditional
Post: RE: remove vowels in word with conditional

(May-01-2021, 08:27 PM)jefsummers Wrote: OK, I am trusting this is not homework, which means I may be duped. There are a number of issues. See this code, which gives what you want: startString = "Ma...
ambrozote General Coding Help 12 4,094 May-02-2021, 02:43 PM
    Thread: remove vowels in word with conditional
Post: remove vowels in word with conditional

Hello, I am trying to shorten large strings by applying some rules to it but not being able to figure it out. Here is the code I have tried so far w/o success. The string in endString is my end goal...
ambrozote General Coding Help 12 4,094 May-01-2021, 05:55 PM

User Panel Messages

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