+ 1
Space between input
How to spaces between input and stars
4 Respostas
+ 8
x=input()
print ("*** " + x + " ***")
+ 4
x=input()
print ("***" + x + "***")
Space between stars and x
+ 4
If you mean Formatting Text in Python, here's some sample code:
https://code.sololearn.com/cY1QpcYktJ2Y/?ref=app
+ 3
You can do this with the following codes (there are more ways of doing it):
>> x = input()
>> print("*** {0} ***".format(x))
>> x = input()
>> print(f"*** {x} ***")
>> x = input()
>> print("***", x, "***")