How i can get space on my each sting output | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

How i can get space on my each sting output

For eg my input is {who ru} then output should like this ( some other)

21st Mar 2020, 7:49 PM
Nishant Anil Rajput
Nishant Anil Rajput - avatar
7 Respuestas
0
you want space start of string?
21st Mar 2020, 7:51 PM
meow
meow - avatar
0
No between two like a== some B== other when I will give two input then output will be like some other
21st Mar 2020, 7:53 PM
Nishant Anil Rajput
Nishant Anil Rajput - avatar
0
print("some","other",sep=" ") this?
21st Mar 2020, 7:55 PM
meow
meow - avatar
0
Noise= str( input ()) If Noise== grr: Print ("Lion") If Noise== Rawr: Print ( "Tiger") Something like this
21st Mar 2020, 7:56 PM
Nishant Anil Rajput
Nishant Anil Rajput - avatar
0
If input is grr Rawr output should be Lion Tiger
21st Mar 2020, 7:57 PM
Nishant Anil Rajput
Nishant Anil Rajput - avatar
0
Noise=input() Noise=Noise.split() dict1={"grr":"Lion","Rawr":"Tiger"} op="" for i in Noise: op+=dict1[i]+" " op=op[:-1] print(op)
21st Mar 2020, 8:06 PM
meow
meow - avatar
0
That you
21st Mar 2020, 8:07 PM
Nishant Anil Rajput
Nishant Anil Rajput - avatar