Tagged Questions
3
votes
1answer
28 views
Script for saving top wallpapers from wallbase.cc into a directory
I am newish to Python and I am looking for some extra eyes on a script I wrote. I wrote this script to learn more about web-scraping and using requests and Beautiful Soup. I use it to connect to the ...
1
vote
3answers
77 views
How could I make my simple Python maze game better?
The program is running fine but I was just wondering whether there was anything I could do to make it more user friendly or efficient. Please note that I have only been programming for a couple of ...
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 ...
5
votes
2answers
80 views
Social Media Hashtag Splitting
I decided to try out Python (3.x) two or so weeks ago, and this is my first real script using it. The program I've written below is slow, clunky, inefficient, inaccurate, and probably poorly coded! ...
5
votes
1answer
445 views
Newton's method to solve cubic equations
I have deleted the previous question I had posted, and am reposting the program with the new version of the code without the error present in the previous one.
I have used the Newton-Raphson method ...
0
votes
2answers
250 views
Counting the even digits in a number [closed]
I made a function to count the even digits in a number and when I enter a number that doesn't include any even digits. I need some one to tell me why and how to fix this. And please be simple in the ...
0
votes
2answers
120 views
Function to count the digits in a number is not working [closed]
I tried to test this function and the first test is OK, but the seconds test failes and I don't know why....
Note: I'm a beginner, so be easy and Please, don't give me complicated answers!
...
4
votes
4answers
384 views
Rock paper scissors
I've started learning Python recently and I wanted to test myself. So, can you tell me how many I would get out of 10 and how I could improve my future coding?
...
4
votes
1answer
107 views
Script for concatenating delimited text files
I need to concatenate a bunch of delimited text files. In the process, I need to add a new column to the data based on part of the name of one of the directories containing each file. The script ...
0
votes
1answer
603 views
Find scrambled words within word list
I'm just getting started with Python -- completing a simple exercise from a practice website. My code works -- just looking for feedback on better ways to achieve the goal.
Goal:
Find the ...
1
vote
2answers
89 views
How to make this random number game better?
I'm a newbie trying to teach myself Python. Could somebody tell me if there is a better way to write this? I am also curious as to whether or not there is anything I should not do. This code does ...
4
votes
2answers
859 views
Simple age converter
I want you to pick my code apart and give me some feedback on how I could make it better or more simple. In my opinion this is the best code I have written, being that I'm new to programming. The ...
2
votes
1answer
337 views
Super simple spam program
x = int(input("Choose the number of times you want to spam. "))
y = input("What message do you want to spam? ")
w = x + 1
for i in range(1,w):
print(y)
Any ...
4
votes
2answers
1k views
Counting letters in a text file
As a beginner Python programmer, I wrote a simple program that counts how many times each letter appears in a text file. It works fine, but I'd like to know if it's possible to improve it.
...
4
votes
5answers
181 views
Guessing words from scrambled letters
How could I possibly shorten / clean this up? I suppose mainly clean up the loop at the start asking whether they would like to scramble the code.
...