Questions tagged [bleep]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
27 views

Problem in equating strings in bleep pset6

This is my implementation of bleep from cs50 import get_string from sys import argv, exit def main(): if len(argv) != 2: print("Usage: python bleep.py <filename.txt>") exit(...
0
votes
1answer
51 views

How do I make this work if user inputs uppercase words that are in the banned text? It only works if it matches exactly how it is in the text file

from cs50 import get_string from sys import argv def main(): if len(argv) != 2: print("Error") exit(1) wordsbanned = set() file = open(argv[1], "r") for line in file: ...
0
votes
1answer
192 views

CS50 Bleep Incorrect Output

I am encountering a problem in CS50 Bleep. When censoring the message, the censored message consists of only one * for the entire word, rather than the length of the word. Here is my code: from cs50 ...
0
votes
1answer
223 views

pset6 bleep: Problem with difference between list and string

I assume that I have the following problem: I create a list for the banned words and although a list with the text input. Then I want to compare both list. But when I create the list of the user ...
3
votes
2answers
3k views

pset6 python bleep

i have this failed test when i use check50 in pset6 bleep :( handles banned words lists with arbitrary words in them Log running python bleep.py banned2.txt... sending input My cat and dog ...