Jul-27-2022, 05:58 AM
Hello, i was wondering on how can i remove the space between the variable color and a string ", I prefer red"
color = str.lower(input ("Please enter your favorite color "))
print ("I don't like", color,", I prefer red")the output of the code when purple is entered:Output:Please enter your favorite color purple
I don't like purple , I prefer redI hope to remove the space between the color and comma so it'll appear as Quote:I don't like purple, I prefer red
