+ 1
I unable to run it in sololearn..what I'm doing wrong?
7 odpowiedzi
+ 4
You created a function, but never called it. Add this to the bottom of your code: my_fun()
+ 3
No problem bro
+ 3
adding \n (only inside a string) will create a new line. This removes the need to create an entire print() function
+ 1
Ohh thank you..😊
+ 1
It's all in one line because of how SoloLearn treats inputs and their prompts.
Using another IDE solves this problem but if you want it to work in SoloLearn try the following.
def my_fun():
x = input('Type 1st name: ')
print()
y = input('Type 2nd name: ')
print()
z = x + " " + y
print(z)
my_fun()
+ 1
Thanks both of you...
0
Why all output is in one line..it looks bad.....is there any way I can change it.