Python Forum
New to python/coding Need help on Understanding why this code isn't working. Thanks!
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New to python/coding Need help on Understanding why this code isn't working. Thanks!
#3
(May-08-2023, 09:35 AM)buran Wrote:
(May-08-2023, 08:51 AM)mat3372 Wrote: code that the(interpreter/compiler **not sure which ones right) don't like
What that does mean exactly? Do you get error?
There are several odd things in the code that you should be aware - using mutable default arguments and also you return string, not list

I didn't know name of what ran the code(compiler/ interpreter **Don't know if either is right)
Yes I do get 1 error and it has squiggly line underneath "def alphabetize" on first line. When I hover over it, it says...Dangerous default value [] as argument.
Reply


Messages In This Thread
RE: New to python/coding Need help on Understanding why this code isn't working. Thanks! - by mat3372 - May-08-2023, 09:52 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  New to Python - Not sure why this code isn't working - Any help appreciated TheGreatNinx 4 1,032 Jul-22-2023, 10:21 PM
Last Post: Pedroski55
  code not working when executed from flask app ThomasDC 1 959 Jul-18-2023, 07:16 AM
Last Post: ThomasDC
  Code understanding: Need help in understanding dictionary code jt123 0 499 Jul-09-2023, 01:13 PM
Last Post: jt123
  Understanding venv; How do I ensure my python script uses the environment every time? Calab 1 2,390 May-10-2023, 02:13 PM
Last Post: Calab
  I am new to python and Could someone please explain how this below code is working? kartheekdas 2 1,061 Dec-19-2022, 05:24 PM
Last Post: kartheekdas
  Understanding Python classes PythonNewbee 3 1,252 Nov-10-2022, 11:07 PM
Last Post: deanhystad
Exclamation My code is not working as I expected and I don't know why! Marinho 4 1,133 Oct-13-2022, 08:09 PM
Last Post: deanhystad
  My Code isn't working... End3r 4 1,993 Mar-21-2022, 10:12 AM
Last Post: End3r
  Understanding a piece of code Michael1 4 1,486 Jan-20-2022, 07:14 PM
Last Post: Michael1
  I don't undestand why my code isn't working. RuyCab 2 2,027 Jun-17-2021, 03:06 PM
Last Post: RuyCab

Forum Jump:

User Panel Messages

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