Python Forum
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
more pythonic way
#6
Quote:I would use new string formatting, instead of old-style.
Do you mean with .format or then python 3.6 style
print(f'{place} is an {adjective} place to visit.')
I like the 3.6 style, but have been a bit reluctant to use it in my scripts,
I suppose it's one way to get users to upgrade.
Reply


Messages In This Thread
more pythonic way - by fstefanov - Apr-24-2017, 06:57 AM
RE: more pythonic way - by ichabod801 - Apr-24-2017, 10:48 AM
RE: more pythonic way - by volcano63 - Apr-24-2017, 11:57 AM
RE: more pythonic way - by Larz60+ - Apr-24-2017, 12:02 PM
RE: more pythonic way - by buran - Apr-24-2017, 12:02 PM
RE: more pythonic way - by Larz60+ - Apr-24-2017, 12:47 PM
RE: more pythonic way - by ichabod801 - Apr-24-2017, 12:51 PM
RE: more pythonic way - by buran - Apr-24-2017, 12:52 PM
RE: more pythonic way - by fstefanov - Apr-24-2017, 05:15 PM

Forum Jump:

User Panel Messages

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