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!
#5
(May-08-2023, 10:21 AM)buran Wrote: So, this is not error (i.e. when you run the code), nor it comes from the interpreter. It's a warning from your IDE about using mutable default argument. Read why it may surprise you
https://docs.python-guide.org/writing/go...-arguments

Thanks for all your help!!! When I run the code "as is" nothing happens. Not totally true my interpreter(Anaconda-VS Code) lists the file that im working in but doesn't list alphabetized names. I don't know why they would put that in the book if it is the wrong way of doing it. So confusing. I read the info in the link you provided and im going to try and do it the way it lists. Thanks again for all your help. I am really green at all this and just trying to make sense of it all.
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, 11:30 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Coding help required in Python using VS Code KakashiSenpai 1 138 Yesterday, 11:23 AM
Last Post: gerpark
  updating pip, python - understanding terminal and pycharm. endlessnameless 0 184 Jun-24-2024, 05:48 AM
Last Post: endlessnameless
  New to Python - Not sure why this code isn't working - Any help appreciated TheGreatNinx 4 1,157 Jul-22-2023, 10:21 PM
Last Post: Pedroski55
  code not working when executed from flask app ThomasDC 1 1,125 Jul-18-2023, 07:16 AM
Last Post: ThomasDC
  Code understanding: Need help in understanding dictionary code jt123 0 563 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,584 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,185 Dec-19-2022, 05:24 PM
Last Post: kartheekdas
  Understanding Python classes PythonNewbee 3 1,365 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,236 Oct-13-2022, 08:09 PM
Last Post: deanhystad
  My Code isn't working... End3r 4 2,129 Mar-21-2022, 10:12 AM
Last Post: End3r

Forum Jump:

User Panel Messages

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