All Questions
67 questions
4
votes
1
answer
74
views
IBM File Processing and PDF Conversion App Using PyQt6 and FPDF
I am trying to convert a 111MB TEXT file to PDF quickly. I'm currently using the FPDF library, and large files take about 40 minutes to process. The text file is an IBM carriage control (ANSI) file ...
9
votes
3
answers
913
views
Split String Function Implementation in Python
For learning purposes, I am trying to implement Python's built-in function split. I am new to Python, and I know that str.split ...
2
votes
3
answers
151
views
Automate the boring stuff with python - Comma Code v2
This is the second version of code reviewed earlier.
Comma Code
Say you have a list value like this:
spam = ['apples', 'bananas', 'tofu', 'cats']
Write a function ...
1
vote
3
answers
217
views
Automate the boring stuff with python - Comma Code
Comma Code
Say you have a list value like this:
spam = ['apples', 'bananas', 'tofu', 'cats']
Write a function that takes a list value as an argument and returns a
...
1
vote
1
answer
372
views
Replacing NOUNS, VERBS, ADJECTIVES in a text file with input words
I've written code for a program that reads a text file, checking if there's any capitalized parts of speech of specific types (noun, adj, verb, adv) in the text and replace them with the user's chosen ...
1
vote
1
answer
299
views
Encode text to Baudot (teletype) code
After watching Computerphile videos on WW2 cryptography and radioteletype I decided to code a translator to Baudot code. I wonder if it can be somehow improved?
...
15
votes
5
answers
3k
views
Comma Code, Project from "Automate the Boring Stuff with Python"
I'm a newbie. I'm at Chapter 4 of Automate the Boring Stuff with Python.
Comma Code
Say you have a list value like this:
...
20
votes
6
answers
5k
views
Password validator
I have made a password verification "program" which takes user input and checks whether the password is valid or not. Based on that, a reply is printed.
...
3
votes
2
answers
4k
views
Separate an email address into its username and domain name
This is my first ever Python program and I wanted to get everyone's opinions on it. The goal of the program is to separate an email address into its username and domain name.
...
2
votes
3
answers
328
views
Convert string format python
I want to fix number of digits after '.' in digit represented by string.
Is there better solution than mine?
My code
...
8
votes
1
answer
982
views
Improving a Medicare Beneficiary Identifier (MBI) generator
I am new to coding and looking for a few pointers on how I can improve my first project.
At work, I often need to create Medicare Beneficiary Identifiers (MBI) when creating test patients with ...
1
vote
1
answer
79
views
Spotting prime numbers with use of limited prime numbers
I'm looking for general feedback as how to improve my code. I wrote the program starting out with no functions, making it very difficult to adapt. When I separated the program into functions it became ...
1
vote
1
answer
371
views
Capitalize the First Letter of Words in a String (JavaScript, Python)
Problem
Write a function that accepts a string, capitalizes the first letter of each word in the string, and returns the capitalized string.
Examples
...
1
vote
1
answer
163
views
Anagram (Python, JavaScript)
Problem
Write a function to check whether two given strings are anagram of each other or not. An anagram of a string is a string that contains same characters ([A-Za-z0-9]) and the order of ...
5
votes
3
answers
1k
views
LeetCode 65: Valid Number (Python)
Problem
Validate if a given string can be interpreted as a decimal or scientific number.
Some examples:
...