Whenever I run the below code, it prints it, but it prints them all on separate lines.
I want it to all appear next to each other instead of under.
I don’t know any methods besides this.
Here is the code:
<code>
asone = """
##
###
##
##
##
##
####
"""
astwo = """
## ##
## ##
##
##
##
# ##
######
"""
asthree = """
## ##
## ##
##
###
##
## ##
## ##
"""
string = "1231"
new_string = string.replace("1", asone)
new_string = new_string.replace("2", astwo)
new_string = new_string.replace("3", asthree)
print(new_string)
</code>
<code>
asone = """
##
###
##
##
##
##
####
"""
astwo = """
## ##
## ##
##
##
##
# ##
######
"""
asthree = """
## ##
## ##
##
###
##
## ##
## ##
"""
string = "1231"
new_string = string.replace("1", asone)
new_string = new_string.replace("2", astwo)
new_string = new_string.replace("3", asthree)
print(new_string)
</code>
asone = """
##
###
##
##
##
##
####
"""
astwo = """
## ##
## ##
##
##
##
# ##
######
"""
asthree = """
## ##
## ##
##
###
##
## ##
## ##
"""
string = "1231"
new_string = string.replace("1", asone)
new_string = new_string.replace("2", astwo)
new_string = new_string.replace("3", asthree)
print(new_string)
this prints like this:
My result: