{"id":1533,"date":"2023-05-21T08:35:01","date_gmt":"2023-05-21T08:35:01","guid":{"rendered":"https:\/\/itnotes.apjsoftwares.com\/?p=1533"},"modified":"2023-05-21T08:35:02","modified_gmt":"2023-05-21T08:35:02","slug":"how-can-you-print-without-a-newline-in-python","status":"publish","type":"post","link":"https:\/\/itnotes.apjsoftwares.in\/index.php\/2023\/05\/21\/how-can-you-print-without-a-newline-in-python\/","title":{"rendered":"How can you print without a newline in Python?"},"content":{"rendered":"\n<p>From Python 3+, there is an additional parameter introduced for print() called end=. This parameter takes care of removing the newline that is added by default in print().<\/p>\n\n\n\n<p>In the Python 3 print without newline example below, we want the strings to print on the same line in Python. To get that working, just add end=\u201d\u201d inside print() as shown in the example below:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">print(\"Hello World \", end=\"\")\nprint(\"Welcome to itnotes\")<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>From Python 3+, there is an additional parameter introduced for print() called end=. This parameter&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[20],"tags":[],"_links":{"self":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/1533"}],"collection":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/comments?post=1533"}],"version-history":[{"count":1,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/1533\/revisions"}],"predecessor-version":[{"id":1534,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/1533\/revisions\/1534"}],"wp:attachment":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/media?parent=1533"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/categories?post=1533"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/tags?post=1533"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}