Author Topic: Python Help?  (Read 1447 times)

0 Members and 1 Guest are viewing this topic.

Offline Dr.Hades

  • Thread Starter
  • Posts: 31
  • Location: Colorado
  • "Trust me"
Python Help?
« on: Fri, 17 January 2020, 21:15:15 »
I have this code in Python that, supposedly, is just fine. Yet it runs into the same error over and over. I'm new to programming, and therefore likely missing something very obvious; but I still would like help!

#list example 
S1 = "ABCDEF"
List = ['G','H','I']

if "ABCDEF" in S1:
    List.remove('G')

Updated = List.remove('G')
Print(Updated)

Edit: Nevermind, I found the solution! Sorry for the disturbance!
« Last Edit: Fri, 17 January 2020, 21:21:18 by Dr.Hades »

Offline Sniping

  • Posts: 861
  • Location: California
Re: Python Help?
« Reply #1 on: Sat, 18 January 2020, 03:33:12 »
in the future you should quickly look up what the methods you're calling are doing exactly. it's impossible to remember it all and the fastest sanity check is to compare the docs with what you expected