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
#7
(Dec-17-2021, 04:27 PM)BashBedlam Wrote: The difference is, You wrote:
tire = ('P', 205, 55, 15)
Where as the instructor wrote:
tire = Tire('P', 205, 55, 15)

Sharp! I didn't saw it either. But that explains a lot.
- 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:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Formatting a date time string read from a csv file DosAtPython 5 1,397 Jun-19-2023, 02:12 PM
Last Post: DosAtPython
  String formatting (strptime) issues Henrio 2 888 Jan-06-2023, 06:57 PM
Last Post: deanhystad
  confused about string formatting barryjo 7 2,039 Mar-06-2022, 02:03 AM
Last Post: snippsat
  string formatting barryjo 7 2,116 Jan-02-2022, 02:08 AM
Last Post: snippsat
  Question on HTML formatting with set string in message Cknutson575 3 3,547 Mar-09-2021, 08:11 AM
Last Post: Cknutson575
  smtplib: string formatting not carrying over to email ClassicalSoul 1 2,693 Apr-22-2020, 09:58 PM
Last Post: bowlofred
  String formatting difficulties mmk1995 3 2,820 Aug-09-2019, 11:18 AM
Last Post: wavic
  string formatting Uchikago 1 1,951 Jun-28-2019, 03:28 PM
Last Post: buran
  TypeError: not all arguments converted during string formatting RedSkeleton007 1 15,003 Jul-15-2018, 08:51 PM
Last Post: ichabod801
  formatting string and returning as geojson garynobles 12 6,708 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