Python Forum
Help with string formatting in classes
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with string formatting in classes
#2
Is there a particular output you expect? Other than what you get? This is in fact pretty correct what is printed. Because it is printing the whole object (meaning it is printing al the items from the list from the tires). If you want particular items from the tire object, a different approach is needed.
- Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. Albert Einstein
Reply


Messages In This Thread
Help with string formatting in classes - by brthurr - Dec-17-2021, 03:43 PM
RE: Help with string formatting in classes - by Jeff900 - Dec-17-2021, 04:10 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Formatting a date time string read from a csv file DosAtPython 5 1,568 Jun-19-2023, 02:12 PM
Last Post: DosAtPython
  String formatting (strptime) issues Henrio 2 934 Jan-06-2023, 06:57 PM
Last Post: deanhystad
  confused about string formatting barryjo 7 2,094 Mar-06-2022, 02:03 AM
Last Post: snippsat
  string formatting barryjo 7 2,192 Jan-02-2022, 02:08 AM
Last Post: snippsat
  Question on HTML formatting with set string in message Cknutson575 3 3,601 Mar-09-2021, 08:11 AM
Last Post: Cknutson575
  smtplib: string formatting not carrying over to email ClassicalSoul 1 2,739 Apr-22-2020, 09:58 PM
Last Post: bowlofred
  String formatting difficulties mmk1995 3 2,862 Aug-09-2019, 11:18 AM
Last Post: wavic
  string formatting Uchikago 1 1,972 Jun-28-2019, 03:28 PM
Last Post: buran
  TypeError: not all arguments converted during string formatting RedSkeleton007 1 15,040 Jul-15-2018, 08:51 PM
Last Post: ichabod801
  formatting string and returning as geojson garynobles 12 6,763 Mar-06-2018, 05:02 PM
Last Post: garynobles

Forum Jump:

User Panel Messages

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