Tagged Questions
5
votes
4answers
846 views
Sieve of Eratosthenes - Python
I've been doing a lot of Project Euler lately and just wanted to make sure my implementation was as good as it could be. Does anyone have any suggestions on speed this up?
...
1
vote
0answers
56 views
Adding, deleting elements as per autocomplete results
I am working on a bookmarker project for replacing storage of bookmarks in webbrowser. It will be storing bookmarks as per categories in a database. I have written some jQuery for the WIP search page. ...
6
votes
4answers
669 views
Are there any bugs or ways to make my divisor code better?
After coding my divisor code which I did as a practice for my GCSE stuff which I have to take soon, I have decided to ask the community if there are any bugs or ways I can improve my code.
...
3
votes
2answers
928 views
Python Port Scanner
This is only my third Python script. Be brutal with me. Any tips, tricks, best practices, or better usages would be great!
...
16
votes
2answers
182 views
We'll be counting stars
Lately, I've been, I've been losing sleep
Dreaming about the things that we could be
But baby, I've been, I've been praying hard,
Said, no more counting dollars
We'll be counting stars, yeah we'll be ...
13
votes
2answers
253 views
First try at a Python game
I've started coding about 3 weeks ago, just for fun and maybe practical uses later. My GF dared me to make a PGM that would replace this dice game where you roll two dice, one with body parts and one ...
10
votes
4answers
549 views
Suggestions for a Dungeons and Dragons-like game
This game is similar to a Dungeons and Dragons game. How could I improve the efficiency of the program? For example, where can I add functions, records etc? This is for a school Controlled ...
7
votes
2answers
135 views
Python Port Scanner 2.1
I made lots of changes to the script presented in my previous question. I was tempted to edit that one with the new code, but it would invalidate @200_success's helpful answer. It was also ...
4
votes
2answers
82 views
Measuring Execution Times
I was wondering which time.time() of from datetime import timedelta was the quickest and best way to find how long a programme ...
3
votes
1answer
62 views
Making a list from user input
I have wrote a program that lets the user open up there text file that would look something like this:
1
2
3
4
5
6
It would then let the user enter a name for ...
3
votes
2answers
91 views
Python Barcode Generator v2
This is a complete rewrite of the code posted for review in this question. The question is identical.
...
3
votes
2answers
161 views
Generating a random string of characters and symbols
After coding this, I was wondering if there are any ways in which I can improve upon it. It generates a random string of characters and symbols the same length as what is entered by the user. It uses ...
3
votes
1answer
84 views
Python Port Scanner 2.0
A few months ago I put up a port scanner for review. Now, I've updated it with some new Python knowledge and integraing the feedback I got.
Some things I specifically think might be wrong with it or ...
3
votes
2answers
533 views
Returning a list of the values from the binary tree
I want to return a list of the values from the binary tree. Is there a shorter and more efficient way to write the method for numbers?
...
2
votes
3answers
148 views
Python Barcode Generator
I was asked to provide some example code for a job interview and didn't have anything to offer, so I wrote the following function.
A barcode generator may seem a bit basic, but there's some logic ...
2
votes
3answers
3k views
Python calculator script
Are there any ways to make this calculator script for Python better or simpler?
...
1
vote
1answer
253 views
Bank ATM program in Python
For homework, I have to code a program in Python that effectively simulates a bank ATM.
...
1
vote
1answer
110 views
Python converter: number-to-English
So I wrote this function to convert a given number to its interpretation in the English language as part of the Project Euler exercises. It works fine, but I sense that it's rather sloppy and ...