Python Forum
Automate the boring stuff, inserting commas in list
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Automate the boring stuff, inserting commas in list
#2
spam.insert(i, 'and') inserts at index min(len(spam), i) when i is non negative and at index max(0, len(spam) + i) when i is negative.
Reply


Messages In This Thread
RE: Automate the boring stuff, inserting commas in list - by Gribouillis - Apr-21-2019, 04:50 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Commas issue in variable ddahlman 6 551 Apr-05-2024, 03:45 PM
Last Post: deanhystad
  help with commas in print functions kronhamilton 11 3,617 Feb-10-2022, 02:02 PM
Last Post: mishraakash
  Run the code for some stuff it does not return me why Anldra12 3 2,920 Apr-19-2021, 02:01 PM
Last Post: Anldra12
  "Automate the Boring Stuff with Python" creating a path works but only for CMD promt Milos 2 2,925 Nov-28-2020, 01:08 PM
Last Post: Larz60+
  Unable to print stuff from while loop Nick1507 4 2,409 Sep-17-2020, 02:26 PM
Last Post: Nick1507
  How Do I Install Stuff for Python? CopBlaster 6 3,300 May-08-2020, 12:27 PM
Last Post: hussainmujtaba
  Learning to have Class and doing stuff with it... bako 2 2,049 Apr-29-2020, 05:07 PM
Last Post: bako
  How to automate list separation. NOOB LobateScarp 18 5,678 Sep-24-2019, 07:28 PM
Last Post: LobateScarp
  Getting Cells from the Sheets "automate the boring stuff" Shafla 8 4,113 Sep-24-2019, 04:53 AM
Last Post: snippsat
  Help|CSV Writing on List with Inner Commas soothsayerpg 2 2,420 Jul-20-2019, 06:59 AM
Last Post: scidam

Forum Jump:

User Panel Messages

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