Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Help with slicing a list
Post: RE: Help with slicing a list
Thats a great idea!
Now I was doing my program so that text like "Hello!" would be ciphered to
Output:144042209809346⟚20030551517791⟚49461787026128⟚49461787026128⟚63810974923268⟚268587913534804⟚FHHT... |
|
FWendeburg |
General Coding Help |
3 |
2,584 |
Nov-30-2019, 06:16 PM |
|
|
Thread: pygame.Surface.fill help
Post: RE: pygame.Surface.fill help
I don't use pygame but for what I can see you should do import pygame.surface.
And you have one parenthesis at the beginning which should be removed and one extra parenthesis at the back too. |
|
FWendeburg |
Game Development |
3 |
6,196 |
Nov-28-2019, 06:43 PM |
|
|
Thread: Help with slicing a list
Post: Help with slicing a list
Hi, I have this program that ciphers text. The output for "This is a test!" would be:
Output:2925596241966444785172913025754527297312947115361659656775S59817385191117554527297312947115361659656
77559... |
|
FWendeburg |
General Coding Help |
3 |
2,584 |
Nov-28-2019, 05:47 PM |
|
|
Thread: Help with importing a module from a package I created.
Post: RE: Help with importing a module from a package I ...
(Mar-12-2019, 08:43 AM)snippsat Wrote: (Mar-12-2019, 01:57 AM)FWendeburg Wrote: My question is: How do I change this so I'm able to import them like:
from w_encryption import encrypt_textYes this ... |
|
FWendeburg |
General Coding Help |
2 |
2,615 |
Mar-12-2019, 04:53 PM |
|
|
Thread: Help with importing a module from a package I created.
Post: Help with importing a module from a package I crea...
Hi, I published a package in PyPI and I'm able to import it. The thing is that to use the functions that the package includes which are two functions, one called encrypt_text and another one called de... |
|
FWendeburg |
General Coding Help |
2 |
2,615 |
Mar-12-2019, 01:57 AM |
|
|
Thread: Console not giving any response to this program.
Post: Console not giving any response to this program.
Hi again, I'm making this encryption\decryption algorithm but now that I'm working with the decryption part the code doesn't output anything.
class w_encryption():
"""A class with a method to encr... |
|
FWendeburg |
General Coding Help |
1 |
2,287 |
Mar-10-2019, 04:37 AM |
|
|
Thread: Program gives error but doesn't say where the error is.
Post: RE: Program gives error but doesn't say where the ...
(Mar-08-2019, 09:21 PM)ichabod801 Wrote: You are going to have to be more specific about how you are testing it. It works fine when I run it. That doesn't look like an error, it looks like the repr ... |
|
FWendeburg |
General Coding Help |
3 |
2,792 |
Mar-09-2019, 11:42 PM |
|
|
Thread: Program gives error but doesn't say where the error is.
Post: Program gives error but doesn't say where the erro...
Hi, i'm making an encryption algorithm but when I test it it gives me a strange error which i can't correct because it doesn't say where. I only have the encryption function for now.
The code:
"""A f... |
|
FWendeburg |
General Coding Help |
3 |
2,792 |
Mar-08-2019, 08:48 PM |
|
|
Thread: Variable defined but python wont recognize it.
Post: Variable defined but python wont recognize it.
Hi, i'm making a program that is supposed to randomly generate numbers between the parameters given.
I just copied a bit of the code to show the problem:
while True:
command = input("\nEnter comm... |
|
FWendeburg |
General Coding Help |
3 |
3,310 |
Feb-19-2019, 09:24 PM |
|
|
Thread: How to format text to modify itself for different console sizes.
Post: How to format text to modify itself for different ...
Hi, i'm making a program and for what it would be the help command i need to display info about each command. The thing is that the text is too long and depending on the CMD window size it will be dis... |
|
FWendeburg |
General Coding Help |
0 |
1,592 |
Feb-18-2019, 06:43 PM |
|
|
Thread: unittest.assertEqual giving failure on result although it's ok.
Post: RE: unittest.assertEqual giving failure on result ...
(Feb-16-2019, 10:17 PM)buran Wrote: you want to compare annual_salary attribute, not the object itself
self.assertEqual(self.employee_one.annual_salary, 505000)also in the Employee.give_raise() met... |
|
FWendeburg |
General Coding Help |
3 |
2,875 |
Feb-17-2019, 12:20 AM |
|
|
Thread: unittest.assertEqual giving failure on result although it's ok.
Post: unittest.assertEqual giving failure on result alth...
Hi, i have been trying the unittest.TestCase class but when I tried it using this python program it somehow says the assertion it's wrong.
employee.py
class Employee():
"""Manages an employee's i... |
|
FWendeburg |
General Coding Help |
3 |
2,875 |
Feb-16-2019, 09:50 PM |
|
|
Thread: Help with ValueError using ranint from random.
Post: Help with ValueError using ranint from random.
Hi, I'm making a program that generates a given quantity of numbers randomly and prints them, but I don't understand why I get this error:
The code:
from random import randint
# n: normal, generat... |
|
FWendeburg |
General Coding Help |
2 |
2,618 |
Feb-14-2019, 02:49 AM |
|
|
Thread: How to make loop go back to the beginning if test evaluaes to True.
Post: How to make loop go back to the beginning if test ...
Hi, im trying to make a program that generates random numbers using the randint function. With this function I want to generate numbers but they can't be repeated.
def n_nonrepeated(q_of_nums, mi... |
|
FWendeburg |
General Coding Help |
1 |
2,821 |
Feb-13-2019, 12:34 AM |
|
|
Thread: Question about for loop not creating an infinite loop.
Post: Question about for loop not creating an infinite l...
Hi, I'm new to programming with python and I completed one of the exercises of the book I use to learn but I don't understand why this code doesn't make an infinite loop of printing the list. The prob... |
|
FWendeburg |
General Coding Help |
1 |
2,117 |
Feb-03-2019, 07:26 PM |
|
|
Thread: Help with while loop creating an infinite loop.
Post: RE: Help with while loop creating an infinite loop...
(Jan-30-2019, 04:57 PM)woooee Wrote: Use a for instead. Note that you append the "pop" in the last statement. for sandwich_ordered in sandwich_orders:
print("\nMaking your " + sandwich_ordered.... |
|
FWendeburg |
Homework |
3 |
3,027 |
Jan-30-2019, 08:28 PM |
|
|
Thread: Help with while loop creating an infinite loop.
Post: Help with while loop creating an infinite loop.
Hi, i have a problem with this python code that should not create an infinite loop. This code should take one item from one list, print a message using that item and then add it to another list.At the... |
|
FWendeburg |
Homework |
3 |
3,027 |
Jan-30-2019, 04:13 PM |