{
  "id": 163805,
  "title": "Advanced Formatted Strings",
  "url": "/competitions/siim-isic-melanoma-classification/discussion/163805",
  "author_name": "",
  "post_date": "2020-07-03T14:28:20.579663800Z",
  "votes": null,
  "comment_count": 3,
  "views": 0,
  "content": "<p>I apologize for the clickbait-y title here... but from what I'm noticing in everybody's notebooks, the standard way to implement a formatted string is <code>print(\"Something... {}\".format(variable))</code>. </p>\n\n<p>The way I like to implement this is by simply specifying the letter <code>f</code> before the opening string. Here's what I mean... <code>print(f\"{variable}\")</code>.</p>\n\n<p>Many of you probably already knew this, but the increase in productivity that it allows for is not ignorable. Try it out yourselves, and you might actually fall in love with it! Let me know how it goes!</p>\n\n<p>Good Luck Ahead!</p>",
  "messages": [
    {
      "id": "913940",
      "postDate": "07/03/2020 14:28:20",
      "content": "<p>I apologize for the clickbait-y title here... but from what I'm noticing in everybody's notebooks, the standard way to implement a formatted string is <code>print(\"Something... {}\".format(variable))</code>. </p>\n\n<p>The way I like to implement this is by simply specifying the letter <code>f</code> before the opening string. Here's what I mean... <code>print(f\"{variable}\")</code>.</p>\n\n<p>Many of you probably already knew this, but the increase in productivity that it allows for is not ignorable. Try it out yourselves, and you might actually fall in love with it! Let me know how it goes!</p>\n\n<p>Good Luck Ahead!</p>",
      "rawMarkdown": "I apologize for the clickbait-y title here... but from what I'm noticing in everybody's notebooks, the standard way to implement a formatted string is `print(\"Something... {}\".format(variable))`. \n\nThe way I like to implement this is by simply specifying the letter `f` before the opening string. Here's what I mean... `print(f\"{variable}\")`.\n\nMany of you probably already knew this, but the increase in productivity that it allows for is not ignorable. Try it out yourselves, and you might actually fall in love with it! Let me know how it goes!\n\nGood Luck Ahead!",
      "votes": null
    },
    {
      "id": "916638",
      "postDate": "07/05/2020 21:37:25",
      "content": "<p>I can confirm :-) The <code>f\"{variable}\"</code> is more readable</p>",
      "rawMarkdown": "I can confirm :-) The `f\"{variable}\"` is more readable",
      "votes": null
    },
    {
      "id": "916693",
      "postDate": "07/06/2020 00:00:12",
      "content": "<p>I also like to use <code>\"the variable x = %.3f\"%x</code> then i use C language <code>printf</code> formatting.</p>",
      "rawMarkdown": "I also like to use `\"the variable x = %.3f\"%x` then i use C language `printf` formatting.",
      "votes": null
    },
    {
      "id": "916707",
      "postDate": "07/06/2020 00:22:24",
      "content": "<p>I agree, coming from C myself too, it is a bit hard to let go of the style!</p>",
      "rawMarkdown": "I agree, coming from C myself too, it is a bit hard to let go of the style!",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 916638,
      "author_name": "agentauers",
      "author_url": "",
      "post_date": "07/05/2020 21:37:25",
      "content": "<p>I can confirm :-) The <code>f\"{variable}\"</code> is more readable</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 916693,
      "author_name": "cdeotte",
      "author_url": "",
      "post_date": "07/06/2020 00:00:12",
      "content": "<p>I also like to use <code>\"the variable x = %.3f\"%x</code> then i use C language <code>printf</code> formatting.</p>",
      "votes": null,
      "replies": [
        {
          "id": 916707,
          "author_name": "harshnagouda",
          "author_url": "",
          "post_date": "07/06/2020 00:22:24",
          "content": "<p>I agree, coming from C myself too, it is a bit hard to let go of the style!</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "913940": "I apologize for the clickbait-y title here... but from what I'm noticing in everybody's notebooks, the standard way to implement a formatted string is `print(\"Something... {}\".format(variable))`. \n\nThe way I like to implement this is by simply specifying the letter `f` before the opening string. Here's what I mean... `print(f\"{variable}\")`.\n\nMany of you probably already knew this, but the increase in productivity that it allows for is not ignorable. Try it out yourselves, and you might actually fall in love with it! Let me know how it goes!\n\nGood Luck Ahead!",
    "916638": "I can confirm :-) The `f\"{variable}\"` is more readable",
    "916693": "I also like to use `\"the variable x = %.3f\"%x` then i use C language `printf` formatting.",
    "916707": "I agree, coming from C myself too, it is a bit hard to let go of the style!"
  },
  "source": "meta"
}