Python 2.1-How to concatenate output from loop

Enferno

PG Xtremist
Sep 7, 2010
704
0
21
karachi
Typo error: Python 2.7*

How do i concatenate output from loop without using a function?

for example if i write this program:

x=1
while x<=3:
print "1"​

the output is:
1
1
1

if I write it like this:

x=1
while x<=3:
print "1",​

the output is:
1 1 1

I want the output to be 111, no spaces/gaps in between.
This is just the simplified version, I want it to be like if there are many consecutive loops, all there output be attached to each other with no space/gaps/new lines.
 
Last edited:
General chit-chat
Help Users
We have disabled traderscore and are working on a fix. There was a bug with the plugin | Click for Discord
  • No one is chatting at the moment.
    faraany3k faraany3k: Just finished Diablo 4 season in hurry to play Fallout 4 but gamepass released another banger in...