Python Forum
Learning python specific syntax after using other scripting languages for years
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Learning python specific syntax after using other scripting languages for years
#6
Quote:It can be done in two ways:
Actually three, now that f-string exists in python 3.6

print(f'{k}:{v}')
Reply


Messages In This Thread
RE: Learning python specific syntax after using other scripting languages for years - by Larz60+ - Dec-11-2017, 04:02 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Converting days to years in loop while computing values across grid cells Lightning1800 2 2,683 May-15-2018, 08:44 PM
Last Post: Lightning1800

Forum Jump:

User Panel Messages

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