Python Forum
week 1 python help - string formatting ?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
week 1 python help - string formatting ?
#14
format is a method of strings, it is used by placing a . after the string
ie 'a string'.format()
format itself takes items that will replace {} that is found inside the string
ie 'keep {} keep'.format('replace')
would become 'keep replace keep'
Reply


Messages In This Thread
RE: week 1 python help - by Yoriz - Jul-08-2019, 09:41 PM
RE: week 1 python help - by ichabod801 - Jul-08-2019, 09:43 PM
RE: week 1 python help - by raymond2688 - Jul-08-2019, 09:46 PM
RE: week 1 python help - string formatting ? - by Yoriz - Jul-08-2019, 11:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  String formatting - tax brackets darek88 1 2,080 Aug-28-2020, 09:59 AM
Last Post: Larz60+
  Calculating the number of day of the week RbaPhoenix 3 2,583 Mar-27-2020, 09:23 PM
Last Post: Larz60+
  String formatting issues? lolatyou 2 2,131 Mar-08-2020, 06:53 AM
Last Post: michael1789
  hardest week yet: some guidence please raymond2688 25 11,102 Aug-22-2019, 05:23 PM
Last Post: ichabod801
  Trying to get the week number from a string of numbers fad3r 2 3,286 Apr-15-2018, 06:52 PM
Last Post: ljmetzger

Forum Jump:

User Panel Messages

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