Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Swahili Frashcard program
Post: Swahili Frashcard program
Hello team,
I would like to share a project.
It is a flashcard card program that helps people to learn Swahili words.
Swahili is a language spoken in countries of east Africa,
such as Kenya, Tanza... |
|
Milan |
Code sharing |
0 |
1,078 |
May-15-2023, 09:29 AM |
|
|
Thread: OSError with SMPT script
Post: OSError with SMPT script
Hello team,
I have the following code
import smtplib
my_email = "[email protected]"
password = "asdfasdf"
connection = smtplib.SMTP("smtp.gmail.com")
connection.starttls()
connection.login(user=my_em... |
|
Milan |
General Coding Help |
0 |
692 |
Apr-28-2023, 01:34 PM |
|
|
Thread: How to compare two parameters in a function that has *args?
Post: RE: How to compare two parameters in a function th...
(Mar-26-2023, 07:20 PM)deanhystad Wrote: You are checking at the wrong time. Tell the user what they can enter and force them to enter values that are correct.
def get_number(prompt, range=None):
... |
|
Milan |
General Coding Help |
4 |
1,198 |
Mar-26-2023, 07:43 PM |
|
|
Thread: How to compare two parameters in a function that has *args?
Post: RE: How to compare two parameters in a function th...
(Mar-26-2023, 05:11 PM)Gribouillis Wrote: Could you explain the problem that you are trying to solve? It is very difficult to understand it through this function that does nothing useful.
Sure, I am... |
|
Milan |
General Coding Help |
4 |
1,198 |
Mar-26-2023, 05:17 PM |
|
|
Thread: How to compare two parameters in a function that has *args?
Post: How to compare two parameters in a function that h...
Hello team,
I have the following function
import string
import random
def check_input(*args):
length = args[0]
while length <= 0:
length = int(input("[!] Please insert a positive... |
|
Milan |
General Coding Help |
4 |
1,198 |
Mar-26-2023, 05:03 PM |
|
|
Thread: How to append integers from file to list?
Post: RE: How to append integers from file to list?
Why don't you explain it nicely like a normal person then? |
|
Milan |
General Coding Help |
8 |
1,364 |
Mar-10-2023, 05:14 PM |
|
|
Thread: How to append integers from file to list?
Post: RE: How to append integers from file to list?
I tried two solutions from the list, they being:
all_values = []
with open('message.txt', newline='') as infile:
for line in infile:
all_values.extend(int(line.strip().split(',')))my_file... |
|
Milan |
General Coding Help |
8 |
1,364 |
Mar-10-2023, 04:48 PM |
|
|
Thread: How to append integers from file to list?
Post: How to append integers from file to list?
Hello team,
I would like to make a list with the numbers from this file: [attachment=2273]
I can't seem to find anything online, tried these two sources:
https://www.geeksforgeeks.org/how-to-rea...... |
|
Milan |
General Coding Help |
8 |
1,364 |
Mar-10-2023, 02:36 PM |
|
|
Thread: Hash cracker
Post: Hash cracker
Hello team,
I posted a question on General Coding Help, but eventually figured it out by myself.
Tbh I tweaked the code from this link https://medium.com/@cyberdocks2019/passw...d1b5e064d9.
from ur... |
|
Milan |
Code sharing |
1 |
1,875 |
Mar-09-2023, 08:38 PM |
|
|
Thread: [SOLVED] How to crack hash with hashlib
Post: [SOLVED] How to crack hash with hashlib
Hello team,
Could someone please shed some light on how to crack SHA3-512 hashes using hashlib or any other way?
What I have so far:
import hashlib
hash = b'a2099f4c2c2de141afb474dfe4b765ce8344810... |
|
Milan |
General Coding Help |
0 |
1,326 |
Mar-09-2023, 08:25 PM |
|
|
Thread: [SOLVED] Password generation UnboundLocalError exception
Post: RE: Password generation UnboundLocalError exceptio...
Works like a charm. Thanks a million.
(Nov-14-2022, 06:08 PM)Yoriz Wrote: When userInput.get() returns a string that int cannot work with it raises a ValueError
Your try/except is capturing the Valu... |
|
Milan |
GUI |
3 |
1,120 |
Nov-14-2022, 06:29 PM |
|
|
Thread: [SOLVED] Password generation UnboundLocalError exception
Post: [SOLVED] Password generation UnboundLocalError exc...
Hello team,
I have the following code:
from tkinter import *
import random
import string
random_string = string.ascii_letters + string.digits + string.punctuation
root = Tk()
root.title('Password... |
|
Milan |
GUI |
3 |
1,120 |
Nov-14-2022, 05:51 PM |
|
|
Thread: [SOLVED] Tkinter module not found
Post: RE: Tkinter module not found
(Aug-02-2022, 07:21 PM)Milan Wrote: Currently using python 3.8, not a virtual environment.
Running sudo apt-get install python3-tk solved it, I am also on linux. Thank you very much. |
|
Milan |
General Coding Help |
7 |
21,483 |
Aug-02-2022, 07:57 PM |
|
|
Thread: [SOLVED] Tkinter module not found
Post: RE: Tkinter module not found
Currently using python 3.8, not a virtual environment. |
|
Milan |
General Coding Help |
7 |
21,483 |
Aug-02-2022, 07:21 PM |
|
|
Thread: [SOLVED] Tkinter module not found
Post: [SOLVED] Tkinter module not found
Hello team,
So I installed tkinter using
pip3 install tkBut when I try to run the following code
import tkinter as tk
root = tk.Tk()
root.mainloop()I get the following error:
Traceback (most recen... |
|
Milan |
General Coding Help |
7 |
21,483 |
Aug-02-2022, 06:51 PM |
|
|
Thread: Code review of my rock paper scissors game
Post: Code review of my rock paper scissors game
Hello team,
I would like to submit my rock paper scissors game for code review. Any suggestion on how to improve it is more than welcome.
import sys
from random import randint
# Game instructions, ... |
|
Milan |
Code Review |
0 |
1,986 |
May-25-2022, 06:59 AM |
|
|
Thread: Can someone please help me write the code
Post: RE: Can someone please help me write the code
If I understood it right, you just have to repeat what you have done there five times.
Hint: Maybe using a loop would help |
|
Milan |
Homework |
8 |
3,251 |
Feb-07-2021, 01:29 PM |
|
|
Thread: Rock paper Scissors
Post: RE: Rock paper Scissors
Thank you very much for your feed back
(Jan-31-2021, 11:29 AM)j.crater Wrote: Hello,
the code looks good to me.
It is common with this kind of games to have a while loop and let player replay if h... |
|
Milan |
Code Review |
2 |
2,738 |
Feb-01-2021, 03:42 PM |
|
|
Thread: Rock paper Scissors
Post: Rock paper Scissors
Hello team,
Any suggestion on how to improve my rps game before making a gui for it?
from random import randint
def startgame():
print(
''' What do you want to play:
[0] Rock
[1] Paper
[2]... |
|
Milan |
Code Review |
2 |
2,738 |
Jan-29-2021, 03:07 PM |
|
|
Thread: Connect 4 assigment
Post: RE: Connect 4 assigment
Team,
I cannot come up with a solution because I am dumb.
Here is a connect 4 code I found online.
import numpy as np
ROW_COUNT = 6
COLUMN_COUNT = 7
def create_board():
board = np.zeros((ROW_CO... |
|
Milan |
Homework |
10 |
12,764 |
Jan-20-2021, 10:02 PM |