Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Character Count HW | Need suggestions for optimization
Post: Character Count HW | Need suggestions for optimiza...

Hello, my homework asked to make a program that accepts a string as a parameter and that returns the letters that appeared the most without any duplicates. I would just like to know if there is any wa...
NectDz Code Review 1 2,065 Nov-25-2020, 02:56 AM
    Thread: Python File to EXE Not working.
Post: RE: Python File to EXE Not working.

Go on the folder where the file is saved then you see the path to the file ontop, click on it and erase the path and just type cmd and enter and cmd will open up. Now you should be able to do what you...
NectDz General Coding Help 9 6,831 Jun-08-2020, 02:31 PM
    Thread: Variable Not Updating
Post: Variable Not Updating

Hello, Im having a problem with my function. It is supposed to out put '01' if the user only puts 1 digit but when I call it in the engine function it does not update. def engine(): m = int(inpu...
NectDz General Coding Help 1 2,802 Jun-07-2020, 10:41 PM
    Thread: While loop = False
Post: While loop = False

I am making a tic tac toe game and I set a while loop = game but when I call my check_X_Repeat function to make it false it does not do so I want to know why the function does not set it False when it...
NectDz General Coding Help 1 1,758 Jun-03-2020, 04:08 PM
    Thread: [Solved]TypeError: list indices must be integers or slices, not str
Post: RE: [Solved]TypeError: list indices must be intege...

(Jun-01-2020, 07:30 PM)DreamingInsanity Wrote: Not sure why it is marked as solved - is it solved? It is solved I could not find a way to delete it, the mistake was an indent error when I called the...
NectDz General Coding Help 3 3,933 Jun-02-2020, 02:19 AM
    Thread: [Solved]TypeError: list indices must be integers or slices, not str
Post: [Solved]TypeError: list indices must be integers o...

I am having a problem with my try and except in python, so basically everytime a person types a letter the whole program will crash and I can not find a way to fix this error using try and except. Typ...
NectDz General Coding Help 3 3,933 Jun-01-2020, 06:45 PM
    Thread: Diner Organizer
Post: RE: Diner Organizer

(May-31-2020, 08:53 PM)Yoriz Wrote: range can be made to count backwardsI did not know that, thank you for telling me!
NectDz Code Review 2 2,411 Jun-01-2020, 01:57 AM
    Thread: Diner Organizer
Post: Diner Organizer

I've did this for fun and I implemented things I recently learned and want to know on things I could of possibly done differently such as made it more efficient, neatness or things that you may have l...
NectDz Code Review 2 2,411 May-31-2020, 06:24 PM
    Thread: 1st Project Guess between 1 and 20
Post: RE: 1st Project Guess between 1 and 20

(May-31-2020, 09:35 AM)MiNigle Wrote: # Guessing Game def string_or_integer(guess): while True: if guess in ('quit', 'Quit'): print('Bye bye!') sys.exit() ...
NectDz Code Review 4 2,512 May-31-2020, 04:11 PM
    Thread: Rock Paper Scissors Game
Post: RE: Rock Paper Scissors Game

(May-30-2020, 06:22 PM)Calli Wrote: i added some try and except but you can add more such as IOError etc def game(): try: global c_T, counter_W, counter_L, rounds, user_R user_R ...
NectDz Code Review 5 3,334 May-31-2020, 12:40 PM
    Thread: Rock Paper Scissors Game
Post: RE: Rock Paper Scissors Game

(May-30-2020, 07:21 AM)ndc85430 Wrote: That stop function (line 6) is very odd. Why do you need to write that instead of just a break on line 28?Since my code has multiple while loops if I were to j...
NectDz Code Review 5 3,334 May-30-2020, 09:42 AM
    Thread: Rock Paper Scissors Game
Post: Rock Paper Scissors Game

I just want to receive some feedback on my code on things I can improve such as if my code can be cleaner or things I can add, anything helps! import time import random rps = ("R","P","S") def stop...
NectDz Code Review 5 3,334 May-28-2020, 04:41 PM
    Thread: TypeError: add() missing 2 required positional arguments
Post: RE: TypeError: add() missing 2 required positional...

(May-28-2020, 12:54 PM)menator01 Wrote: I don't know the scope of your program but, just wanted to point out that these are already global variables. Not really any need to define them global in yo...
NectDz General Coding Help 5 13,114 May-28-2020, 02:38 PM
    Thread: TypeError: add() missing 2 required positional arguments
Post: RE: TypeError: add() missing 2 required positional...

(May-28-2020, 12:33 PM)GOTO10 Wrote: You have defined your add() function to expect 3 arguments (user_In, Table, Seat), but you are calling it with only a single argument in line 42.Thank you! That ...
NectDz General Coding Help 5 13,114 May-28-2020, 12:38 PM
    Thread: TypeError: add() missing 2 required positional arguments
Post: TypeError: add() missing 2 required positional arg...

Hello,I am new to parameters and I am having difficulties understanding my code does not work. # Tables Table_A = 0 Table_B = 0 Table_C = 0 # Seats remaining seat_A = 4 seat_B = 6 seat_C = 2 ...
NectDz General Coding Help 5 13,114 May-28-2020, 12:24 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020